#F2D752#F2D752

#F2D752 is a very light, vivid yellow. Relative luminance 0.681; OKLCH L 87.8% C 0.151 H 97.7°. Best body text is #000000 at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#F2D752
RGBrgb(242, 215, 82)
HSLhsl(50, 86%, 64%)
HSVhsv(50, 66%, 95%)
CMYKcmyk(0%, 11.2%, 66.1%, 5.1%)
CIE-LABlab(86.05, -5.21, 66.52)
CIE-LCHlch(86.05, 66.73, 94.48°)
OKLaboklab(87.8% -0.0201 0.15)
OKLCHoklch(87.8% 0.151 97.7)
XYZxyz(62.4442, 68.0903, 17.8346)
Luminance0.6809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D752 #526DF2
analogous
#F28752 #F2D752 #BDF252
triadic
#F2D752 #52F2D7 #D752F2
tetradic
#F2D752 #52F287 #526DF2 #F252BD
square
#F2D752 #52F287 #526DF2 #F252BD
split-complementary
#F2D752 #52BDF2 #8752F2
monochromatic
#BC9E0E #EECA19 #F2D752 #F6E48B #FBF1C4

Accessibility & contrast

On white

1.44
#F2D752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.62
#F2D752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D752
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D752#FFFFFF#000000##000000
##F2D7521.001.4414.6214.62
#FFFFFF1.441.0021.0021.00
#00000014.6221.001.001.00
##00000014.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD241
Deuteranopia (green-blind)
#F2DB59
Tritanopia (blue-blind)
#FFC8BB
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #f2d752;
/* rgb */ color: rgb(242, 215, 82);
/* oklch */ color: oklch(87.8% 0.151 97.7);
Tailwind
colors: {
  custom: {
    50: '#fae389',
    500: '#f2d752',
    950: '#000000',
  },
}
SCSS
$custom: #f2d752;
$custom-light: #fae389;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d752",
  "rgb": {
    "r": 242,
    "g": 215,
    "b": 82
  },
  "hsl": {
    "h": 49.875,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.87801,
    "c": 0.15133,
    "h": 97.7
  },
  "luminance": 0.68087
}

Semantic roles & 50–950 ramp

primary
#F2D752
secondary
#2E46BA
accent
#29E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D752

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

Preview Lab → · Contrast checker → · Palette generator →

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