#F2D04F#F2D04F

#F2D04F is a very light, vivid yellow. Relative luminance 0.646; OKLCH L 86.4% C 0.149 H 94.2°. Best body text is #000000 at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#F2D04F
RGBrgb(242, 208, 79)
HSLhsl(47, 86%, 63%)
HSVhsv(47, 67%, 95%)
CMYKcmyk(0%, 14%, 67.4%, 5.1%)
CIE-LABlab(84.25, -1.82, 65.87)
CIE-LCHlch(84.25, 65.90, 91.58°)
OKLaboklab(86.37% -0.0108 0.1481)
OKLCHoklch(86.37% 0.149 94.2)
XYZxyz(60.5881, 64.5568, 16.6650)
Luminance0.6455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D04F #4F71F2
analogous
#F27F4F #F2D04F #C2F24F
triadic
#F2D04F #4FF2D0 #D04FF2
tetradic
#F2D04F #4FF27F #4F71F2 #F24FC2
square
#F2D04F #4FF27F #4F71F2 #F24FC2
split-complementary
#F2D04F #4FC2F2 #7F4FF2
monochromatic
#B9950E #EEC116 #F2D04F #F6DF88 #FAEEC1

Accessibility & contrast

On white

1.51
#F2D04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.91
#F2D04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D04F
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D04F#FFFFFF#000000##000000
##F2D04F1.001.5113.9113.91
#FFFFFF1.511.0021.0021.00
#00000013.9121.001.001.00
##00000013.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CC3E
Deuteranopia (green-blind)
#EED756
Tritanopia (blue-blind)
#FFC0B5
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #f2d04f;
/* rgb */ color: rgb(242, 208, 79);
/* oklch */ color: oklch(86.4% 0.149 94.2);
Tailwind
colors: {
  custom: {
    50: '#fade87',
    500: '#f2d04f',
    950: '#000000',
  },
}
SCSS
$custom: #f2d04f;
$custom-light: #fade87;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d04f",
  "rgb": {
    "r": 242,
    "g": 208,
    "b": 79
  },
  "hsl": {
    "h": 47.485,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.86372,
    "c": 0.14851,
    "h": 94.2
  },
  "luminance": 0.64554
}

Semantic roles & 50–950 ramp

primary
#F2D04F
secondary
#2D4AB8
accent
#31E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D04F

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

Preview Lab → · Contrast checker → · Palette generator →

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