#F6EC98#F6EC98

#F6EC98 is a very light, moderate yellow. Relative luminance 0.819; OKLCH L 93.3% C 0.105 H 102.4°. Best body text is #000000 at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#F6EC98
RGBrgb(246, 236, 152)
HSLhsl(54, 84%, 78%)
HSVhsv(54, 38%, 96%)
CMYKcmyk(0%, 4.1%, 38.2%, 3.5%)
CIE-LABlab(92.51, -8.42, 41.94)
CIE-LCHlch(92.51, 42.78, 101.36°)
OKLaboklab(93.25% -0.0225 0.1028)
OKLCHoklch(93.25% 0.105 102.4)
XYZxyz(73.6702, 81.8527, 41.6181)
Luminance0.8185 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F6EC98 #98A2F6
analogous
#F6BD98 #F6EC98 #D1F698
triadic
#F6EC98 #98F6EC #EC98F6
tetradic
#F6EC98 #98F6BD #98A2F6 #F698D1
square
#F6EC98 #98F6BD #98A2F6 #F698D1
split-complementary
#F6EC98 #98D1F6 #BD98F6
monochromatic
#ECD727 #F1E260 #F6EC98 #FBF6D0 #FDFAE3

Accessibility & contrast

On white

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

On black

17.37
#F6EC98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F6EC98
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F6EC98#FFFFFF#000000##000000
##F6EC981.001.2117.3717.37
#FFFFFF1.211.0021.0021.00
#00000017.3721.001.001.00
##00000017.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE792
Deuteranopia (green-blind)
#FEEC9B
Tritanopia (blue-blind)
#FFE1D7
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f6ec98;
/* rgb */ color: rgb(246, 236, 152);
/* oklch */ color: oklch(93.3% 0.105 102.4);
Tailwind
colors: {
  custom: {
    50: '#faf2b7',
    500: '#f6ec98',
    950: '#000000',
  },
}
SCSS
$custom: #f6ec98;
$custom-light: #faf2b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f6ec98",
  "rgb": {
    "r": 246,
    "g": 236,
    "b": 152
  },
  "hsl": {
    "h": 53.617,
    "s": 83.929,
    "l": 78.039
  },
  "oklch": {
    "l": 0.9325,
    "c": 0.10518,
    "h": 102.4
  },
  "luminance": 0.81851
}

Semantic roles & 50–950 ramp

primary
#F6EC98
secondary
#5D6AD5
accent
#1CE005
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F6EC98

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

Preview Lab → · Contrast checker → · Palette generator →

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