#F2D772#F2D772

#F2D772 is a very light, vivid yellow. Relative luminance 0.687; OKLCH L 88.1% C 0.125 H 94.7°. Best body text is #000000 at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#F2D772
RGBrgb(242, 215, 114)
HSLhsl(47, 83%, 70%)
HSVhsv(47, 53%, 95%)
CMYKcmyk(0%, 11.2%, 52.9%, 5.1%)
CIE-LABlab(86.35, -3.03, 52.70)
CIE-LCHlch(86.35, 52.79, 93.29°)
OKLaboklab(88.14% -0.0102 0.1244)
OKLCHoklch(88.14% 0.125 94.7)
XYZxyz(63.9580, 68.6958, 25.8070)
Luminance0.6869 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D772 #728DF2
analogous
#F29772 #F2D772 #CDF272
triadic
#F2D772 #72F2D7 #D772F2
tetradic
#F2D772 #72F297 #728DF2 #F272CD
square
#F2D772 #72F297 #728DF2 #F272CD
split-complementary
#F2D772 #72CDF2 #9772F2
monochromatic
#D6AD14 #EDC73A #F2D772 #F7E7AA #FCF7E2

Accessibility & contrast

On white

1.42
#F2D772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.74
#F2D772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D772
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D772#FFFFFF#000000##000000
##F2D7721.001.4214.7414.74
#FFFFFF1.421.0021.0021.00
#00000014.7421.001.001.00
##00000014.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D369
Deuteranopia (green-blind)
#F0DC76
Tritanopia (blue-blind)
#FFCAC0
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f2d772;
/* rgb */ color: rgb(242, 215, 114);
/* oklch */ color: oklch(88.1% 0.125 94.7);
Tailwind
colors: {
  custom: {
    50: '#f9e39d',
    500: '#f2d772',
    950: '#000000',
  },
}
SCSS
$custom: #f2d772;
$custom-light: #f9e39d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d772",
  "rgb": {
    "r": 242,
    "g": 215,
    "b": 114
  },
  "hsl": {
    "h": 47.344,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.88137,
    "c": 0.12478,
    "h": 94.7
  },
  "luminance": 0.68693
}

Semantic roles & 50–950 ramp

primary
#F2D772
secondary
#3D5BCC
accent
#34E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D772

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

Preview Lab → · Contrast checker → · Palette generator →

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