#FFE98C#FFE98C

#FFE98C is a very light, moderate yellow. Relative luminance 0.814; OKLCH L 93.2% C 0.116 H 96.4°. Best body text is #000000 at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#FFE98C
RGBrgb(255, 233, 140)
HSLhsl(49, 100%, 77%)
HSVhsv(49, 45%, 100%)
CMYKcmyk(0%, 8.6%, 45.1%, 0%)
CIE-LABlab(92.32, -4.64, 47.75)
CIE-LCHlch(92.32, 47.97, 95.55°)
OKLaboklab(93.23% -0.013 0.1152)
OKLCHoklch(93.23% 0.116 96.4)
XYZxyz(75.1146, 81.4340, 36.5675)
Luminance0.8143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFE98C #8CA2FF
analogous
#FFB08C #FFE98C #DBFF8C
triadic
#FFE98C #8CFFE9 #E98CFF
tetradic
#FFE98C #8CFFB0 #8CA2FF #FF8CDB
square
#FFE98C #8CFFB0 #8CA2FF #FF8CDB
split-complementary
#FFE98C #8CDBFF #B08CFF
monochromatic
#FFD212 #FFDD4F #FFE98C #FFF5C9 #FFF9E0

Accessibility & contrast

On white

1.21
#FFE98C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.29
#FFE98C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFE98C
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFE98C#FFFFFF#000000##000000
##FFE98C1.001.2117.2917.29
#FFFFFF1.211.0021.0021.00
#00000017.2921.001.001.00
##00000017.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE585
Deuteranopia (green-blind)
#FFEC90
Tritanopia (blue-blind)
#FFDCD2
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ffe98c;
/* rgb */ color: rgb(255, 233, 140);
/* oklch */ color: oklch(93.2% 0.116 96.4);
Tailwind
colors: {
  custom: {
    50: '#ffefaf',
    500: '#ffe98c',
    950: '#000000',
  },
}
SCSS
$custom: #ffe98c;
$custom-light: #ffefaf;
$custom-dark: #000000;
JSON
{
  "hex": "#ffe98c",
  "rgb": {
    "r": 255,
    "g": 233,
    "b": 140
  },
  "hsl": {
    "h": 48.522,
    "s": 100,
    "l": 77.451
  },
  "oklch": {
    "l": 0.93226,
    "c": 0.11593,
    "h": 96.4
  },
  "luminance": 0.81431
}

Semantic roles & 50–950 ramp

primary
#FFE98C
secondary
#4F6BE0
accent
#2CE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #FFE98C

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

Preview Lab → · Contrast checker → · Palette generator →

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