#F2D970#F2D970

#F2D970 is a very light, vivid yellow. Relative luminance 0.697; OKLCH L 88.5% C 0.128 H 96.2°. Best body text is #000000 at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#F2D970
RGBrgb(242, 217, 112)
HSLhsl(48, 83%, 69%)
HSVhsv(48, 54%, 95%)
CMYKcmyk(0%, 10.3%, 53.7%, 5.1%)
CIE-LABlab(86.84, -4.20, 54.21)
CIE-LCHlch(86.84, 54.38, 94.43°)
OKLaboklab(88.51% -0.0138 0.1275)
OKLCHoklch(88.51% 0.128 96.2)
XYZxyz(64.3578, 69.6756, 25.3848)
Luminance0.6967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D970 #7089F2
analogous
#F29870 #F2D970 #CAF270
triadic
#F2D970 #70F2D9 #D970F2
tetradic
#F2D970 #70F298 #7089F2 #F270CA
square
#F2D970 #70F298 #7089F2 #F270CA
split-complementary
#F2D970 #70CAF2 #9870F2
monochromatic
#D4AF13 #EDCA38 #F2D970 #F7E8A8 #FCF7E0

Accessibility & contrast

On white

1.41
#F2D970 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.93
#F2D970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D970
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D970#FFFFFF#000000##000000
##F2D9701.001.4114.9314.93
#FFFFFF1.411.0021.0021.00
#00000014.9321.001.001.00
##00000014.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD566
Deuteranopia (green-blind)
#F2DD75
Tritanopia (blue-blind)
#FFCBC1
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d970;
/* rgb */ color: rgb(242, 217, 112);
/* oklch */ color: oklch(88.5% 0.128 96.2);
Tailwind
colors: {
  custom: {
    50: '#f9e49c',
    500: '#f2d970',
    950: '#000000',
  },
}
SCSS
$custom: #f2d970;
$custom-light: #f9e49c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d970",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 112
  },
  "hsl": {
    "h": 48.462,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.88513,
    "c": 0.12822,
    "h": 96.2
  },
  "luminance": 0.69673
}

Semantic roles & 50–950 ramp

primary
#F2D970
secondary
#3B57CB
accent
#30E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D970

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

Preview Lab → · Contrast checker → · Palette generator →

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