#F2D371#F2D371

#F2D371 is a very light, vivid yellow. Relative luminance 0.667; OKLCH L 87.3% C 0.123 H 92.2°. Best body text is #000000 at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#F2D371
RGBrgb(242, 211, 113)
HSLhsl(46, 83%, 70%)
HSVhsv(46, 53%, 95%)
CMYKcmyk(0%, 12.8%, 53.3%, 5.1%)
CIE-LABlab(85.33, -1.07, 51.96)
CIE-LCHlch(85.33, 51.97, 91.18°)
OKLaboklab(87.33% -0.0047 0.1227)
OKLCHoklch(87.33% 0.123 92.2)
XYZxyz(62.8953, 66.6610, 25.1735)
Luminance0.6666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D371 #7190F2
analogous
#F29271 #F2D371 #D1F271
triadic
#F2D371 #71F2D3 #D371F2
tetradic
#F2D371 #71F292 #7190F2 #F271D1
square
#F2D371 #71F292 #7190F2 #F271D1
split-complementary
#F2D371 #71D1F2 #9271F2
monochromatic
#D5A714 #EDC239 #F2D371 #F7E4A9 #FCF6E1

Accessibility & contrast

On white

1.47
#F2D371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.33
#F2D371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D371
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D371#FFFFFF#000000##000000
##F2D3711.001.4714.3314.33
#FFFFFF1.471.0021.0021.00
#00000014.3321.001.001.00
##00000014.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D068
Deuteranopia (green-blind)
#EDD975
Tritanopia (blue-blind)
#FFC5BC
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f2d371;
/* rgb */ color: rgb(242, 211, 113);
/* oklch */ color: oklch(87.3% 0.123 92.2);
Tailwind
colors: {
  custom: {
    50: '#f9e09c',
    500: '#f2d371',
    950: '#000000',
  },
}
SCSS
$custom: #f2d371;
$custom-light: #f9e09c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d371",
  "rgb": {
    "r": 242,
    "g": 211,
    "b": 113
  },
  "hsl": {
    "h": 45.581,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.87327,
    "c": 0.12275,
    "h": 92.2
  },
  "luminance": 0.66658
}

Semantic roles & 50–950 ramp

primary
#F2D371
secondary
#3C5ECB
accent
#3AE006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D371

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

Preview Lab → · Contrast checker → · Palette generator →

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