#F2EB5A#F2EB5A

#F2EB5A is a very light, vivid yellow. Relative luminance 0.790; OKLCH L 92.0% C 0.163 H 106.5°. Best body text is #000000 at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#F2EB5A
RGBrgb(242, 235, 90)
HSLhsl(57, 85%, 65%)
HSVhsv(57, 63%, 95%)
CMYKcmyk(0%, 2.9%, 62.8%, 5.1%)
CIE-LABlab(91.25, -14.71, 68.75)
CIE-LCHlch(91.25, 70.31, 102.08°)
OKLaboklab(91.95% -0.0463 0.1559)
OKLCHoklch(91.95% 0.163 106.5)
XYZxyz(68.1741, 79.0343, 21.3349)
Luminance0.7903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EB5A #5A61F2
analogous
#F29F5A #F2EB5A #ADF25A
triadic
#F2EB5A #5AF2EB #EB5AF2
tetradic
#F2EB5A #5AF29F #5A61F2 #F25AAD
square
#F2EB5A #5AF29F #5A61F2 #F25AAD
split-complementary
#F2EB5A #5AADF2 #9F5AF2
monochromatic
#C2BA0F #EEE421 #F2EB5A #F6F293 #FBF9CB

Accessibility & contrast

On white

1.25
#F2EB5A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.81
#F2EB5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EB5A
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EB5A#FFFFFF#000000##000000
##F2EB5A1.001.2516.8116.81
#FFFFFF1.251.0021.0021.00
#00000016.8121.001.001.00
##00000016.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE348
Deuteranopia (green-blind)
#FFE963
Tritanopia (blue-blind)
#FFDCCD
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f2eb5a;
/* rgb */ color: rgb(242, 235, 90);
/* oklch */ color: oklch(92.0% 0.163 106.5);
Tailwind
colors: {
  custom: {
    50: '#faf18f',
    500: '#f2eb5a',
    950: '#000000',
  },
}
SCSS
$custom: #f2eb5a;
$custom-light: #faf18f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2eb5a",
  "rgb": {
    "r": 242,
    "g": 235,
    "b": 90
  },
  "hsl": {
    "h": 57.237,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.9195,
    "c": 0.16262,
    "h": 106.5
  },
  "luminance": 0.79032
}

Semantic roles & 50–950 ramp

primary
#F2EB5A
secondary
#3037C0
accent
#0EE204
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2EB5A

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

Preview Lab → · Contrast checker → · Palette generator →

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