#FEF770#FEF770

#FEF770 is a very light, vivid yellow. Relative luminance 0.888; OKLCH L 95.6% C 0.155 H 106.2°. Best body text is #000000 at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#FEF770
RGBrgb(254, 247, 112)
HSLhsl(57, 99%, 72%)
HSVhsv(57, 56%, 100%)
CMYKcmyk(0%, 2.8%, 55.9%, 0.4%)
CIE-LABlab(95.48, -14.29, 64.42)
CIE-LCHlch(95.48, 65.99, 102.51°)
OKLaboklab(95.61% -0.0435 0.1493)
OKLCHoklch(95.61% 0.155 106.2)
XYZxyz(77.0608, 88.7646, 28.4001)
Luminance0.8876 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF770 #7077FE
analogous
#FEB070 #FEF770 #BEFE70
triadic
#FEF770 #70FEF7 #F770FE
tetradic
#FEF770 #70FEB0 #7077FE #FE70BE
square
#FEF770 #70FEB0 #7077FE #FE70BE
split-complementary
#FEF770 #70BEFE #B070FE
monochromatic
#F2E602 #FEF433 #FEF770 #FEFAAD #FFFDE1

Accessibility & contrast

On white

1.12
#FEF770 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.75
#FEF770 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF770
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF770#FFFFFF#000000##000000
##FEF7701.001.1218.7518.75
#FFFFFF1.121.0021.0021.00
#00000018.7521.001.001.00
##00000018.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF62
Deuteranopia (green-blind)
#FFF577
Tritanopia (blue-blind)
#FFE9D9
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef770;
/* rgb */ color: rgb(254, 247, 112);
/* oklch */ color: oklch(95.6% 0.155 106.2);
Tailwind
colors: {
  custom: {
    50: '#fff99d',
    500: '#fef770',
    950: '#000000',
  },
}
SCSS
$custom: #fef770;
$custom-light: #fff99d;
$custom-dark: #000000;
JSON
{
  "hex": "#fef770",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 112
  },
  "hsl": {
    "h": 57.042,
    "s": 98.611,
    "l": 71.765
  },
  "oklch": {
    "l": 0.95611,
    "c": 0.15547,
    "h": 106.2
  },
  "luminance": 0.88762
}

Semantic roles & 50–950 ramp

primary
#FEF770
secondary
#3840DA
accent
#0BE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF770

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#FEF770 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva