#F2D470#F2D470

#F2D470 is a very light, vivid yellow. Relative luminance 0.671; OKLCH L 87.5% C 0.124 H 93.0°. Best body text is #000000 at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#F2D470
RGBrgb(242, 212, 112)
HSLhsl(46, 83%, 69%)
HSVhsv(46, 54%, 95%)
CMYKcmyk(0%, 12.4%, 53.7%, 5.1%)
CIE-LABlab(85.57, -1.66, 52.72)
CIE-LCHlch(85.57, 52.75, 91.80°)
OKLaboklab(87.51% -0.0065 0.1242)
OKLCHoklch(87.51% 0.124 93)
XYZxyz(63.0885, 67.1370, 24.9617)
Luminance0.6713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D470 #708EF2
analogous
#F29370 #F2D470 #CFF270
triadic
#F2D470 #70F2D4 #D470F2
tetradic
#F2D470 #70F293 #708EF2 #F270CF
square
#F2D470 #70F293 #708EF2 #F270CF
split-complementary
#F2D470 #70CFF2 #9370F2
monochromatic
#D4A813 #EDC338 #F2D470 #F7E5A8 #FCF6E0

Accessibility & contrast

On white

1.46
#F2D470 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.43
#F2D470 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D470
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D470#FFFFFF#000000##000000
##F2D4701.001.4614.4314.43
#FFFFFF1.461.0021.0021.00
#00000014.4321.001.001.00
##00000014.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D167
Deuteranopia (green-blind)
#EEDA74
Tritanopia (blue-blind)
#FFC6BD
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f2d470;
/* rgb */ color: rgb(242, 212, 112);
/* oklch */ color: oklch(87.5% 0.124 93.0);
Tailwind
colors: {
  custom: {
    50: '#f9e19b',
    500: '#f2d470',
    950: '#000000',
  },
}
SCSS
$custom: #f2d470;
$custom-light: #f9e19b;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d470",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 112
  },
  "hsl": {
    "h": 46.154,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.87513,
    "c": 0.12439,
    "h": 93
  },
  "luminance": 0.67134
}

Semantic roles & 50–950 ramp

primary
#F2D470
secondary
#3B5CCB
accent
#38E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D470

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

Preview Lab → · Contrast checker → · Palette generator →

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