#F2EB7F#F2EB7F

#F2EB7F is a very light, vivid yellow. Relative luminance 0.798; OKLCH L 92.3% C 0.130 H 105.4°. Best body text is #000000 at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#F2EB7F
RGBrgb(242, 235, 127)
HSLhsl(56, 82%, 72%)
HSVhsv(56, 48%, 95%)
CMYKcmyk(0%, 2.9%, 47.5%, 5.1%)
CIE-LABlab(91.61, -11.95, 52.85)
CIE-LCHlch(91.61, 54.19, 102.74°)
OKLaboklab(92.35% -0.0346 0.1258)
OKLCHoklch(92.35% 0.13 105.4)
XYZxyz(70.1587, 79.8282, 31.7872)
Luminance0.7983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EB7F #7F86F2
analogous
#F2B27F #F2EB7F #BFF27F
triadic
#F2EB7F #7FF2EB #EB7FF2
tetradic
#F2EB7F #7FF2B2 #7F86F2 #F27FBF
square
#F2EB7F #7FF2B2 #7F86F2 #F27FBF
split-complementary
#F2EB7F #7FBFF2 #B27FF2
monochromatic
#E0D417 #ECE247 #F2EB7F #F8F4B7 #FCFBE3

Accessibility & contrast

On white

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

On black

16.97
#F2EB7F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EB7F
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EB7F#FFFFFF#000000##000000
##F2EB7F1.001.2416.9716.97
#FFFFFF1.241.0021.0021.00
#00000016.9721.001.001.00
##00000016.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE476
Deuteranopia (green-blind)
#FEE984
Tritanopia (blue-blind)
#FFDFD2
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2eb7f;
/* rgb */ color: rgb(242, 235, 127);
/* oklch */ color: oklch(92.3% 0.130 105.4);
Tailwind
colors: {
  custom: {
    50: '#f8f1a6',
    500: '#f2eb7f',
    950: '#000000',
  },
}
SCSS
$custom: #f2eb7f;
$custom-light: #f8f1a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2eb7f",
  "rgb": {
    "r": 242,
    "g": 235,
    "b": 127
  },
  "hsl": {
    "h": 56.348,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.9235,
    "c": 0.13048,
    "h": 105.4
  },
  "luminance": 0.79826
}

Semantic roles & 50–950 ramp

primary
#F2EB7F
secondary
#4850CD
accent
#15DE08
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#17160F
muted
#858580

Preview Lab

Preview with #F2EB7F

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

Preview Lab → · Contrast checker → · Palette generator →

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