#F5F281#F5F281

#F5F281 is a very light, vivid yellow. Relative luminance 0.845; OKLCH L 94.1% C 0.136 H 107.4°. Best body text is #000000 at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#F5F281
RGBrgb(245, 242, 129)
HSLhsl(58, 85%, 73%)
HSVhsv(58, 47%, 96%)
CMYKcmyk(0%, 1.2%, 47.3%, 3.9%)
CIE-LABlab(93.67, -14.04, 54.46)
CIE-LCHlch(93.67, 56.24, 104.46°)
OKLaboklab(94.05% -0.0405 0.1295)
OKLCHoklch(94.05% 0.136 107.4)
XYZxyz(73.3724, 84.5036, 33.2104)
Luminance0.8450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F281 #8184F5
analogous
#F5B881 #F5F281 #BEF581
triadic
#F5F281 #81F5F2 #F281F5
tetradic
#F5F281 #81F5B8 #8184F5 #F581BE
square
#F5F281 #81F5B8 #8184F5 #F581BE
split-complementary
#F5F281 #81BEF5 #B881F5
monochromatic
#E9E413 #F0EC48 #F5F281 #F9F8BA #FDFCE3

Accessibility & contrast

On white

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

On black

17.90
#F5F281 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F281
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F281#FFFFFF#000000##000000
##F5F2811.001.1717.9017.90
#FFFFFF1.171.0021.0021.00
#00000017.9021.001.001.00
##00000017.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA77
Deuteranopia (green-blind)
#FFEF86
Tritanopia (blue-blind)
#FFE5D8
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f5f281;
/* rgb */ color: rgb(245, 242, 129);
/* oklch */ color: oklch(94.1% 0.136 107.4);
Tailwind
colors: {
  custom: {
    50: '#faf6a8',
    500: '#f5f281',
    950: '#000000',
  },
}
SCSS
$custom: #f5f281;
$custom-light: #faf6a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f281",
  "rgb": {
    "r": 245,
    "g": 242,
    "b": 129
  },
  "hsl": {
    "h": 58.448,
    "s": 85.294,
    "l": 73.333
  },
  "oklch": {
    "l": 0.94054,
    "c": 0.13565,
    "h": 107.4
  },
  "luminance": 0.84502
}

Semantic roles & 50–950 ramp

primary
#F5F281
secondary
#494DD1
accent
#09E204
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F5F281

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

Preview Lab → · Contrast checker → · Palette generator →

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