#F2ED7C#F2ED7C

#F2ED7C is a very light, vivid yellow. Relative luminance 0.809; OKLCH L 92.7% C 0.135 H 106.5°. Best body text is #000000 at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#F2ED7C
RGBrgb(242, 237, 124)
HSLhsl(57, 82%, 72%)
HSVhsv(57, 49%, 95%)
CMYKcmyk(0%, 2.1%, 48.8%, 5.1%)
CIE-LABlab(92.09, -13.20, 54.84)
CIE-LCHlch(92.09, 56.40, 103.54°)
OKLaboklab(92.72% -0.0385 0.1299)
OKLCHoklch(92.72% 0.135 106.5)
XYZxyz(70.5420, 80.9028, 30.9647)
Luminance0.8090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2ED7C #7C81F2
analogous
#F2B27C #F2ED7C #BCF27C
triadic
#F2ED7C #7CF2ED #ED7CF2
tetradic
#F2ED7C #7CF2B2 #7C81F2 #F27CBC
square
#F2ED7C #7CF2B2 #7C81F2 #F27CBC
split-complementary
#F2ED7C #7CBCF2 #B27CF2
monochromatic
#DED516 #ECE544 #F2ED7C #F8F5B4 #FCFBE3

Accessibility & contrast

On white

1.22
#F2ED7C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.18
#F2ED7C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2ED7C
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2ED7C#FFFFFF#000000##000000
##F2ED7C1.001.2217.1817.18
#FFFFFF1.221.0021.0021.00
#00000017.1821.001.001.00
##00000017.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE672
Deuteranopia (green-blind)
#FFEB81
Tritanopia (blue-blind)
#FFE0D3
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f2ed7c;
/* rgb */ color: rgb(242, 237, 124);
/* oklch */ color: oklch(92.7% 0.135 106.5);
Tailwind
colors: {
  custom: {
    50: '#f8f2a4',
    500: '#f2ed7c',
    950: '#000000',
  },
}
SCSS
$custom: #f2ed7c;
$custom-light: #f8f2a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ed7c",
  "rgb": {
    "r": 242,
    "g": 237,
    "b": 124
  },
  "hsl": {
    "h": 57.458,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.92721,
    "c": 0.13549,
    "h": 106.5
  },
  "luminance": 0.80901
}

Semantic roles & 50–950 ramp

primary
#F2ED7C
secondary
#454BCD
accent
#10DE07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F2ED7C

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

Preview Lab → · Contrast checker → · Palette generator →

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