#F2D77B#F2D77B

#F2D77B is a very light, moderate yellow. Relative luminance 0.689; OKLCH L 88.3% C 0.116 H 93.5°. Best body text is #000000 at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#F2D77B
RGBrgb(242, 215, 123)
HSLhsl(46, 82%, 72%)
HSVhsv(46, 49%, 95%)
CMYKcmyk(0%, 11.2%, 49.2%, 5.1%)
CIE-LABlab(86.46, -2.26, 48.51)
CIE-LCHlch(86.46, 48.56, 92.67°)
OKLaboklab(88.26% -0.007 0.1159)
OKLCHoklch(88.26% 0.116 93.5)
XYZxyz(64.4957, 68.9109, 28.6389)
Luminance0.6891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D77B #7B96F2
analogous
#F29C7B #F2D77B #D1F27B
triadic
#F2D77B #7BF2D7 #D77BF2
tetradic
#F2D77B #7BF29C #7B96F2 #F27BD1
square
#F2D77B #7BF29C #7B96F2 #F27BD1
split-complementary
#F2D77B #7BD1F2 #9C7BF2
monochromatic
#DDB016 #EDC643 #F2D77B #F7E8B3 #FCF7E3

Accessibility & contrast

On white

1.42
#F2D77B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.78
#F2D77B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D77B
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D77B#FFFFFF#000000##000000
##F2D77B1.001.4214.7814.78
#FFFFFF1.421.0021.0021.00
#00000014.7821.001.001.00
##00000014.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D473
Deuteranopia (green-blind)
#EFDC7F
Tritanopia (blue-blind)
#FFCAC1
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f2d77b;
/* rgb */ color: rgb(242, 215, 123);
/* oklch */ color: oklch(88.3% 0.116 93.5);
Tailwind
colors: {
  custom: {
    50: '#f8e3a3',
    500: '#f2d77b',
    950: '#000000',
  },
}
SCSS
$custom: #f2d77b;
$custom-light: #f8e3a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d77b",
  "rgb": {
    "r": 242,
    "g": 215,
    "b": 123
  },
  "hsl": {
    "h": 46.387,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.88256,
    "c": 0.11612,
    "h": 93.5
  },
  "luminance": 0.68908
}

Semantic roles & 50–950 ramp

primary
#F2D77B
secondary
#4563CD
accent
#38DE07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D77B

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

Preview Lab → · Contrast checker → · Palette generator →

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