#F2D770#F2D770

#F2D770 is a very light, vivid yellow. Relative luminance 0.686; OKLCH L 88.1% C 0.127 H 94.9°. Best body text is #000000 at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#F2D770
RGBrgb(242, 215, 112)
HSLhsl(48, 83%, 69%)
HSVhsv(48, 54%, 95%)
CMYKcmyk(0%, 11.2%, 53.7%, 5.1%)
CIE-LABlab(86.33, -3.19, 53.62)
CIE-LCHlch(86.33, 53.71, 93.40°)
OKLaboklab(88.11% -0.0109 0.1262)
OKLCHoklch(88.11% 0.127 94.9)
XYZxyz(63.8454, 68.6508, 25.2140)
Luminance0.6865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D770 #708BF2
analogous
#F29670 #F2D770 #CCF270
triadic
#F2D770 #70F2D7 #D770F2
tetradic
#F2D770 #70F296 #708BF2 #F270CC
square
#F2D770 #70F296 #708BF2 #F270CC
split-complementary
#F2D770 #70CCF2 #9670F2
monochromatic
#D4AC13 #EDC738 #F2D770 #F7E7A8 #FCF6E0

Accessibility & contrast

On white

1.43
#F2D770 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.73
#F2D770 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D770
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D770#FFFFFF#000000##000000
##F2D7701.001.4314.7314.73
#FFFFFF1.431.0021.0021.00
#00000014.7321.001.001.00
##00000014.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D367
Deuteranopia (green-blind)
#F0DC74
Tritanopia (blue-blind)
#FFC9BF
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f2d770;
/* rgb */ color: rgb(242, 215, 112);
/* oklch */ color: oklch(88.1% 0.127 94.9);
Tailwind
colors: {
  custom: {
    50: '#f9e39c',
    500: '#f2d770',
    950: '#000000',
  },
}
SCSS
$custom: #f2d770;
$custom-light: #f9e39c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d770",
  "rgb": {
    "r": 242,
    "g": 215,
    "b": 112
  },
  "hsl": {
    "h": 47.538,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.88112,
    "c": 0.12664,
    "h": 94.9
  },
  "luminance": 0.68648
}

Semantic roles & 50–950 ramp

primary
#F2D770
secondary
#3B59CB
accent
#33E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D770

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

Preview Lab → · Contrast checker → · Palette generator →

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