#F6D162#F6D162

#F6D162 is a very light, vivid yellow. Relative luminance 0.661; OKLCH L 87.1% C 0.135 H 90.9°. Best body text is #000000 at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#F6D162
RGBrgb(246, 209, 98)
HSLhsl(45, 89%, 67%)
HSVhsv(45, 60%, 96%)
CMYKcmyk(0%, 15%, 60.2%, 3.5%)
CIE-LABlab(85.04, 0.48, 58.67)
CIE-LCHlch(85.04, 58.67, 89.53°)
OKLaboklab(87.13% -0.0022 0.1354)
OKLCHoklch(87.13% 0.135 90.9)
XYZxyz(63.0140, 66.0790, 20.9883)
Luminance0.6608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F6D162 #6287F6
analogous
#F68762 #F6D162 #D1F662
triadic
#F6D162 #62F6D1 #D162F6
tetradic
#F6D162 #62F687 #6287F6 #F662D1
square
#F6D162 #62F687 #6287F6 #F662D1
split-complementary
#F6D162 #62D1F6 #8762F6
monochromatic
#D2A00C #F3C028 #F6D162 #F9E29C #FDF3D6

Accessibility & contrast

On white

1.48
#F6D162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.22
#F6D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F6D162
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F6D162#FFFFFF#000000##000000
##F6D1621.001.4814.2214.22
#FFFFFF1.481.0021.0021.00
#00000014.2221.001.001.00
##00000014.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CE57
Deuteranopia (green-blind)
#EFD967
Tritanopia (blue-blind)
#FFC2B9
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f6d162;
/* rgb */ color: rgb(246, 209, 98);
/* oklch */ color: oklch(87.1% 0.135 90.9);
Tailwind
colors: {
  custom: {
    50: '#fcde92',
    500: '#f6d162',
    950: '#000000',
  },
}
SCSS
$custom: #f6d162;
$custom-light: #fcde92;
$custom-dark: #000000;
JSON
{
  "hex": "#f6d162",
  "rgb": {
    "r": 246,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 45,
    "s": 89.157,
    "l": 67.451
  },
  "oklch": {
    "l": 0.87128,
    "c": 0.13547,
    "h": 90.9
  },
  "luminance": 0.66076
}

Semantic roles & 50–950 ramp

primary
#F6D162
secondary
#2F57CD
accent
#39E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F6D162

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

Preview Lab → · Contrast checker → · Palette generator →

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