#F5F28E#F5F28E

#F5F28E is a very light, vivid yellow. Relative luminance 0.849; OKLCH L 94.2% C 0.122 H 107.0°. Best body text is #000000 at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#F5F28E
RGBrgb(245, 242, 142)
HSLhsl(58, 84%, 76%)
HSVhsv(58, 42%, 96%)
CMYKcmyk(0%, 1.2%, 42%, 3.9%)
CIE-LABlab(93.83, -12.82, 48.48)
CIE-LCHlch(93.83, 50.15, 104.81°)
OKLaboklab(94.23% -0.0358 0.1171)
OKLCHoklch(94.23% 0.122 107)
XYZxyz(74.2921, 84.8715, 38.0542)
Luminance0.8487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F28E #8E91F5
analogous
#F5BE8E #F5F28E #C4F58E
triadic
#F5F28E #8EF5F2 #F28EF5
tetradic
#F5F28E #8EF5BE #8E91F5 #F58EC4
square
#F5F28E #8EF5BE #8E91F5 #F58EC4
split-complementary
#F5F28E #8EC4F5 #BE8EF5
monochromatic
#EBE51E #F0EC56 #F5F28E #FAF8C6 #FDFCE3

Accessibility & contrast

On white

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

On black

17.97
#F5F28E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F28E
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F28E#FFFFFF#000000##000000
##F5F28E1.001.1717.9717.97
#FFFFFF1.171.0021.0021.00
#00000017.9721.001.001.00
##00000017.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB86
Deuteranopia (green-blind)
#FFEF92
Tritanopia (blue-blind)
#FFE6DA
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f5f28e;
/* rgb */ color: rgb(245, 242, 142);
/* oklch */ color: oklch(94.2% 0.122 107.0);
Tailwind
colors: {
  custom: {
    50: '#faf6b0',
    500: '#f5f28e',
    950: '#000000',
  },
}
SCSS
$custom: #f5f28e;
$custom-light: #faf6b0;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f28e",
  "rgb": {
    "r": 245,
    "g": 242,
    "b": 142
  },
  "hsl": {
    "h": 58.252,
    "s": 83.74,
    "l": 75.882
  },
  "oklch": {
    "l": 0.94232,
    "c": 0.12244,
    "h": 107
  },
  "luminance": 0.8487
}

Semantic roles & 50–950 ramp

primary
#F5F28E
secondary
#5558D3
accent
#0CE005
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181711
muted
#868581

Preview Lab

Preview with #F5F28E

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

Preview Lab → · Contrast checker → · Palette generator →

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