#F2D34F#F2D34F

#F2D34F is a very light, vivid yellow. Relative luminance 0.660; OKLCH L 87.0% C 0.151 H 95.8°. Best body text is #000000 at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#F2D34F
RGBrgb(242, 211, 79)
HSLhsl(49, 86%, 63%)
HSVhsv(49, 67%, 95%)
CMYKcmyk(0%, 12.8%, 67.4%, 5.1%)
CIE-LABlab(85.01, -3.35, 66.65)
CIE-LCHlch(85.01, 66.74, 92.87°)
OKLaboklab(86.97% -0.0151 0.1498)
OKLCHoklch(86.97% 0.151 95.8)
XYZxyz(61.3265, 66.0335, 16.9111)
Luminance0.6603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D34F #4F6EF2
analogous
#F2814F #F2D34F #BFF24F
triadic
#F2D34F #4FF2D3 #D34FF2
tetradic
#F2D34F #4FF281 #4F6EF2 #F24FBF
square
#F2D34F #4FF281 #4F6EF2 #F24FBF
split-complementary
#F2D34F #4FBFF2 #814FF2
monochromatic
#B9980E #EEC516 #F2D34F #F6E188 #FAEFC1

Accessibility & contrast

On white

1.48
#F2D34F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.21
#F2D34F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D34F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D34F#FFFFFF#000000##000000
##F2D34F1.001.4814.2114.21
#FFFFFF1.481.0021.0021.00
#00000014.2121.001.001.00
##00000014.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CF3E
Deuteranopia (green-blind)
#F0D956
Tritanopia (blue-blind)
#FFC3B8
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f2d34f;
/* rgb */ color: rgb(242, 211, 79);
/* oklch */ color: oklch(87.0% 0.151 95.8);
Tailwind
colors: {
  custom: {
    50: '#fae087',
    500: '#f2d34f',
    950: '#000000',
  },
}
SCSS
$custom: #f2d34f;
$custom-light: #fae087;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d34f",
  "rgb": {
    "r": 242,
    "g": 211,
    "b": 79
  },
  "hsl": {
    "h": 48.589,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.86972,
    "c": 0.15054,
    "h": 95.8
  },
  "luminance": 0.6603
}

Semantic roles & 50–950 ramp

primary
#F2D34F
secondary
#2D48B8
accent
#2DE303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D34F

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

Preview Lab → · Contrast checker → · Palette generator →

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