#F2ED7B#F2ED7B

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

Color values

HEX#F2ED7B
RGBrgb(242, 237, 123)
HSLhsl(57, 82%, 72%)
HSVhsv(57, 49%, 95%)
CMYKcmyk(0%, 2.1%, 49.2%, 5.1%)
CIE-LABlab(92.08, -13.29, 55.29)
CIE-LCHlch(92.08, 56.86, 103.52°)
OKLaboklab(92.71% -0.0388 0.1308)
OKLCHoklch(92.71% 0.136 106.5)
XYZxyz(70.4790, 80.8776, 30.6334)
Luminance0.8088 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2ED7B #7B80F2
analogous
#F2B27B #F2ED7B #BCF27B
triadic
#F2ED7B #7BF2ED #ED7BF2
tetradic
#F2ED7B #7BF2B2 #7B80F2 #F27BBC
square
#F2ED7B #7BF2B2 #7B80F2 #F27BBC
split-complementary
#F2ED7B #7BBCF2 #B27BF2
monochromatic
#DDD416 #EDE543 #F2ED7B #F7F5B3 #FCFBE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2ED7B#FFFFFF#000000##000000
##F2ED7B1.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)
#FDE571
Deuteranopia (green-blind)
#FFEB81
Tritanopia (blue-blind)
#FFE0D3
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f2ed7b;
/* rgb */ color: rgb(242, 237, 123);
/* oklch */ color: oklch(92.7% 0.136 106.5);
Tailwind
colors: {
  custom: {
    50: '#f8f2a4',
    500: '#f2ed7b',
    950: '#000000',
  },
}
SCSS
$custom: #f2ed7b;
$custom-light: #f8f2a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ed7b",
  "rgb": {
    "r": 242,
    "g": 237,
    "b": 123
  },
  "hsl": {
    "h": 57.479,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.92709,
    "c": 0.13646,
    "h": 106.5
  },
  "luminance": 0.80876
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2ED7B

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

Preview Lab → · Contrast checker → · Palette generator →

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