#FFEFA2#FFEFA2

#FFEFA2 is a very light, moderate yellow. Relative luminance 0.856; OKLCH L 94.8% C 0.098 H 97.9°. Best body text is #000000 at 18.12:1 contrast (WCAG AA passes).

Color values

HEX#FFEFA2
RGBrgb(255, 239, 162)
HSLhsl(50, 100%, 82%)
HSVhsv(50, 36%, 100%)
CMYKcmyk(0%, 6.3%, 36.5%, 0%)
CIE-LABlab(94.14, -5.38, 39.23)
CIE-LCHlch(94.14, 39.59, 97.81°)
OKLaboklab(94.77% -0.0134 0.0968)
OKLCHoklch(94.77% 0.098 97.9)
XYZxyz(78.6294, 85.6039, 46.5567)
Luminance0.8560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEFA2 #A2B2FF
analogous
#FFC1A2 #FFEFA2 #E1FFA2
triadic
#FFEFA2 #A2FFEF #EFA2FF
tetradic
#FFEFA2 #A2FFC1 #A2B2FF #FFA2E1
square
#FFEFA2 #A2FFC1 #A2B2FF #FFA2E1
split-complementary
#FFEFA2 #A2E1FF #C1A2FF
monochromatic
#FFDA28 #FFE465 #FFEFA2 #FFFADF #FFFAE0

Accessibility & contrast

On white

1.16
#FFEFA2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.12
#FFEFA2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEFA2
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEFA2#FFFFFF#000000##000000
##FFEFA21.001.1618.1218.12
#FFFFFF1.161.0021.0021.00
#00000018.1221.001.001.00
##00000018.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEEB9C
Deuteranopia (green-blind)
#FFF1A5
Tritanopia (blue-blind)
#FFE4DB
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #ffefa2;
/* rgb */ color: rgb(255, 239, 162);
/* oklch */ color: oklch(94.8% 0.098 97.9);
Tailwind
colors: {
  custom: {
    50: '#fff4be',
    500: '#ffefa2',
    950: '#000000',
  },
}
SCSS
$custom: #ffefa2;
$custom-light: #fff4be;
$custom-dark: #000000;
JSON
{
  "hex": "#ffefa2",
  "rgb": {
    "r": 255,
    "g": 239,
    "b": 162
  },
  "hsl": {
    "h": 49.677,
    "s": 100,
    "l": 81.765
  },
  "oklch": {
    "l": 0.94766,
    "c": 0.09774,
    "h": 97.9
  },
  "luminance": 0.85602
}

Semantic roles & 50–950 ramp

primary
#FFEFA2
secondary
#6278E3
accent
#27E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181712
muted
#868582

Preview Lab

Preview with #FFEFA2

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

Preview Lab → · Contrast checker → · Palette generator →

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