#F2D474#F2D474

#F2D474 is a very light, vivid yellow. Relative luminance 0.672; OKLCH L 87.6% C 0.121 H 92.4°. Best body text is #000000 at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#F2D474
RGBrgb(242, 212, 116)
HSLhsl(46, 83%, 70%)
HSVhsv(46, 52%, 95%)
CMYKcmyk(0%, 12.4%, 52.1%, 5.1%)
CIE-LABlab(85.62, -1.33, 50.87)
CIE-LCHlch(85.62, 50.89, 91.50°)
OKLaboklab(87.56% -0.0051 0.1205)
OKLCHoklch(87.56% 0.121 92.4)
XYZxyz(63.3162, 67.2281, 26.1608)
Luminance0.6723 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D474 #7492F2
analogous
#F29574 #F2D474 #D1F274
triadic
#F2D474 #74F2D4 #D474F2
tetradic
#F2D474 #74F295 #7492F2 #F274D1
square
#F2D474 #74F295 #7492F2 #F274D1
split-complementary
#F2D474 #74D1F2 #9574F2
monochromatic
#D7A914 #EDC33C #F2D474 #F7E5AC #FCF6E3

Accessibility & contrast

On white

1.45
#F2D474 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.45
#F2D474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D474
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D474#FFFFFF#000000##000000
##F2D4741.001.4514.4514.45
#FFFFFF1.451.0021.0021.00
#00000014.4521.001.001.00
##00000014.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D16C
Deuteranopia (green-blind)
#EEDA78
Tritanopia (blue-blind)
#FFC7BE
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f2d474;
/* rgb */ color: rgb(242, 212, 116);
/* oklch */ color: oklch(87.6% 0.121 92.4);
Tailwind
colors: {
  custom: {
    50: '#f9e19e',
    500: '#f2d474',
    950: '#000000',
  },
}
SCSS
$custom: #f2d474;
$custom-light: #f9e19e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d474",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 116
  },
  "hsl": {
    "h": 45.714,
    "s": 82.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.87564,
    "c": 0.12065,
    "h": 92.4
  },
  "luminance": 0.67225
}

Semantic roles & 50–950 ramp

primary
#F2D474
secondary
#3E60CC
accent
#3ADF06
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D474

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

Preview Lab → · Contrast checker → · Palette generator →

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