#F2E751#F2E751

#F2E751 is a very light, vivid yellow. Relative luminance 0.766; OKLCH L 91.1% C 0.165 H 105.1°. Best body text is #000000 at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#F2E751
RGBrgb(242, 231, 81)
HSLhsl(56, 86%, 63%)
HSVhsv(56, 67%, 95%)
CMYKcmyk(0%, 4.5%, 66.5%, 5.1%)
CIE-LABlab(90.15, -13.26, 71.13)
CIE-LCHlch(90.15, 72.36, 100.56°)
OKLaboklab(91.05% -0.0431 0.1596)
OKLCHoklch(91.05% 0.165 105.1)
XYZxyz(66.6816, 76.6256, 19.0607)
Luminance0.7662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E751 #515CF2
analogous
#F29751 #F2E751 #ACF251
triadic
#F2E751 #51F2E7 #E751F2
tetradic
#F2E751 #51F297 #515CF2 #F251AC
square
#F2E751 #51F297 #515CF2 #F251AC
split-complementary
#F2E751 #51ACF2 #9751F2
monochromatic
#BBAF0E #EEDF18 #F2E751 #F6EF8A #FBF7C3

Accessibility & contrast

On white

1.29
#F2E751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.32
#F2E751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E751
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E751#FFFFFF#000000##000000
##F2E7511.001.2916.3216.32
#FFFFFF1.291.0021.0021.00
#00000016.3221.001.001.00
##00000016.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FADF3C
Deuteranopia (green-blind)
#FEE65B
Tritanopia (blue-blind)
#FFD8C9
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f2e751;
/* rgb */ color: rgb(242, 231, 81);
/* oklch */ color: oklch(91.1% 0.165 105.1);
Tailwind
colors: {
  custom: {
    50: '#faee8a',
    500: '#f2e751',
    950: '#000000',
  },
}
SCSS
$custom: #f2e751;
$custom-light: #faee8a;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e751",
  "rgb": {
    "r": 242,
    "g": 231,
    "b": 81
  },
  "hsl": {
    "h": 55.901,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.91052,
    "c": 0.16528,
    "h": 105.1
  },
  "luminance": 0.76623
}

Semantic roles & 50–950 ramp

primary
#F2E751
secondary
#2E37B9
accent
#12E303
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F2E751

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

Preview Lab → · Contrast checker → · Palette generator →

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