#F6E162#F6E162

#F6E162 is a very light, vivid yellow. Relative luminance 0.743; OKLCH L 90.3% C 0.147 H 100.0°. Best body text is #000000 at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#F6E162
RGBrgb(246, 225, 98)
HSLhsl(51, 89%, 67%)
HSVhsv(51, 60%, 96%)
CMYKcmyk(0%, 8.5%, 60.2%, 3.5%)
CIE-LABlab(89.08, -7.62, 63.17)
CIE-LCHlch(89.08, 63.62, 96.88°)
OKLaboklab(90.32% -0.0255 0.1451)
OKLCHoklch(90.32% 0.147 100)
XYZxyz(67.1385, 74.3279, 22.3631)
Luminance0.7432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F6E162 #6277F6
analogous
#F69762 #F6E162 #C1F662
triadic
#F6E162 #62F6E1 #E162F6
tetradic
#F6E162 #62F697 #6277F6 #F662C1
square
#F6E162 #62F697 #6277F6 #F662C1
split-complementary
#F6E162 #62C1F6 #9762F6
monochromatic
#D2B60C #F3D628 #F6E162 #F9EC9C #FDF7D6

Accessibility & contrast

On white

1.32
#F6E162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.87
#F6E162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F6E162
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F6E162#FFFFFF#000000##000000
##F6E1621.001.3215.8715.87
#FFFFFF1.321.0021.0021.00
#00000015.8721.001.001.00
##00000015.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DB54
Deuteranopia (green-blind)
#FAE368
Tritanopia (blue-blind)
#FFD2C6
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f6e162;
/* rgb */ color: rgb(246, 225, 98);
/* oklch */ color: oklch(90.3% 0.147 100.0);
Tailwind
colors: {
  custom: {
    50: '#fcea93',
    500: '#f6e162',
    950: '#000000',
  },
}
SCSS
$custom: #f6e162;
$custom-light: #fcea93;
$custom-dark: #000000;
JSON
{
  "hex": "#f6e162",
  "rgb": {
    "r": 246,
    "g": 225,
    "b": 98
  },
  "hsl": {
    "h": 51.486,
    "s": 89.157,
    "l": 67.451
  },
  "oklch": {
    "l": 0.90324,
    "c": 0.14727,
    "h": 100
  },
  "luminance": 0.74325
}

Semantic roles & 50–950 ramp

primary
#F6E162
secondary
#2F46CD
accent
#21E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F6E162

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

Preview Lab → · Contrast checker → · Palette generator →

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