#F2D873#F2D873

#F2D873 is a very light, vivid yellow. Relative luminance 0.692; OKLCH L 88.3% C 0.125 H 95.2°. Best body text is #000000 at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#F2D873
RGBrgb(242, 216, 115)
HSLhsl(48, 83%, 70%)
HSVhsv(48, 52%, 95%)
CMYKcmyk(0%, 10.7%, 52.5%, 5.1%)
CIE-LABlab(86.62, -3.46, 52.54)
CIE-LCHlch(86.62, 52.65, 93.76°)
OKLaboklab(88.35% -0.0114 0.1241)
OKLCHoklch(88.35% 0.125 95.2)
XYZxyz(64.2706, 69.2295, 26.1936)
Luminance0.6923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D873 #738DF2
analogous
#F29973 #F2D873 #CCF273
triadic
#F2D873 #73F2D8 #D873F2
tetradic
#F2D873 #73F299 #738DF2 #F273CC
square
#F2D873 #73F299 #738DF2 #F273CC
split-complementary
#F2D873 #73CCF2 #9973F2
monochromatic
#D7AF14 #EDC83B #F2D873 #F7E8AB #FCF7E3

Accessibility & contrast

On white

1.41
#F2D873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.85
#F2D873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D873
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D873#FFFFFF#000000##000000
##F2D8731.001.4114.8514.85
#FFFFFF1.411.0021.0021.00
#00000014.8521.001.001.00
##00000014.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD46A
Deuteranopia (green-blind)
#F1DC77
Tritanopia (blue-blind)
#FFCBC1
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d873;
/* rgb */ color: rgb(242, 216, 115);
/* oklch */ color: oklch(88.3% 0.125 95.2);
Tailwind
colors: {
  custom: {
    50: '#f9e39e',
    500: '#f2d873',
    950: '#000000',
  },
}
SCSS
$custom: #f2d873;
$custom-light: #f9e39e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d873",
  "rgb": {
    "r": 242,
    "g": 216,
    "b": 115
  },
  "hsl": {
    "h": 47.717,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.8835,
    "c": 0.12463,
    "h": 95.2
  },
  "luminance": 0.69227
}

Semantic roles & 50–950 ramp

primary
#F2D873
secondary
#3D5BCC
accent
#33DF06
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D873

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

Preview Lab → · Contrast checker → · Palette generator →

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