#FFF162#FFF162

#FFF162 is a very light, vivid yellow. Relative luminance 0.851; OKLCH L 94.3% C 0.161 H 103.7°. Best body text is #000000 at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#FFF162
RGBrgb(255, 241, 98)
HSLhsl(55, 100%, 69%)
HSVhsv(55, 62%, 100%)
CMYKcmyk(0%, 5.5%, 61.6%, 0%)
CIE-LABlab(93.91, -11.90, 68.64)
CIE-LCHlch(93.91, 69.66, 99.83°)
OKLaboklab(94.34% -0.0382 0.1565)
OKLCHoklch(94.34% 0.161 103.7)
XYZxyz(74.9027, 85.0552, 24.0247)
Luminance0.8505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF162 #6270FF
analogous
#FFA362 #FFF162 #BEFF62
triadic
#FFF162 #62FFF1 #F162FF
tetradic
#FFF162 #62FFA3 #6270FF #FF62BE
square
#FFF162 #62FFA3 #6270FF #FF62BE
split-complementary
#FFF162 #62BEFF #A362FF
monochromatic
#E7D200 #FFEC25 #FFF162 #FFF69F #FFFCDC

Accessibility & contrast

On white

1.17
#FFF162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.01
#FFF162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF162
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF162#FFFFFF#000000##000000
##FFF1621.001.1718.0118.01
#FFFFFF1.171.0021.0021.00
#00000018.0121.001.001.00
##00000018.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE951
Deuteranopia (green-blind)
#FFF16A
Tritanopia (blue-blind)
#FFE2D3
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fff162;
/* rgb */ color: rgb(255, 241, 98);
/* oklch */ color: oklch(94.3% 0.161 103.7);
Tailwind
colors: {
  custom: {
    50: '#fff594',
    500: '#fff162',
    950: '#000000',
  },
}
SCSS
$custom: #fff162;
$custom-light: #fff594;
$custom-dark: #000000;
JSON
{
  "hex": "#fff162",
  "rgb": {
    "r": 255,
    "g": 241,
    "b": 98
  },
  "hsl": {
    "h": 54.65,
    "s": 100,
    "l": 69.216
  },
  "oklch": {
    "l": 0.94338,
    "c": 0.16106,
    "h": 103.7
  },
  "luminance": 0.85052
}

Semantic roles & 50–950 ramp

primary
#FFF162
secondary
#2C3BDA
accent
#14E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#19170E
muted
#87857F

Preview Lab

Preview with #FFF162

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

Preview Lab → · Contrast checker → · Palette generator →

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