#F2EB7B#F2EB7B

#F2EB7B is a very light, vivid yellow. Relative luminance 0.797; OKLCH L 92.3% C 0.134 H 105.5°. Best body text is #000000 at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#F2EB7B
RGBrgb(242, 235, 123)
HSLhsl(56, 82%, 72%)
HSVhsv(56, 49%, 95%)
CMYKcmyk(0%, 2.9%, 49.2%, 5.1%)
CIE-LABlab(91.56, -12.30, 54.67)
CIE-LCHlch(91.56, 56.04, 102.68°)
OKLaboklab(92.3% -0.036 0.1295)
OKLCHoklch(92.3% 0.134 105.5)
XYZxyz(69.9032, 79.7260, 30.4414)
Luminance0.7972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EB7B #7B82F2
analogous
#F2B07B #F2EB7B #BEF27B
triadic
#F2EB7B #7BF2EB #EB7BF2
tetradic
#F2EB7B #7BF2B0 #7B82F2 #F27BBE
square
#F2EB7B #7BF2B0 #7B82F2 #F27BBE
split-complementary
#F2EB7B #7BBEF2 #B07BF2
monochromatic
#DDD116 #EDE343 #F2EB7B #F7F3B3 #FCFBE3

Accessibility & contrast

On white

1.24
#F2EB7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.94
#F2EB7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EB7B
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EB7B#FFFFFF#000000##000000
##F2EB7B1.001.2416.9416.94
#FFFFFF1.241.0021.0021.00
#00000016.9421.001.001.00
##00000016.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE471
Deuteranopia (green-blind)
#FFE980
Tritanopia (blue-blind)
#FFDED1
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2eb7b;
/* rgb */ color: rgb(242, 235, 123);
/* oklch */ color: oklch(92.3% 0.134 105.5);
Tailwind
colors: {
  custom: {
    50: '#f8f1a4',
    500: '#f2eb7b',
    950: '#000000',
  },
}
SCSS
$custom: #f2eb7b;
$custom-light: #f8f1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2eb7b",
  "rgb": {
    "r": 242,
    "g": 235,
    "b": 123
  },
  "hsl": {
    "h": 56.471,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.92299,
    "c": 0.13439,
    "h": 105.5
  },
  "luminance": 0.79724
}

Semantic roles & 50–950 ramp

primary
#F2EB7B
secondary
#454DCD
accent
#14DE07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F2EB7B

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

Preview Lab → · Contrast checker → · Palette generator →

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