#F5F257#F5F257

#F5F257 is a very light, vivid yellow. Relative luminance 0.836; OKLCH L 93.6% C 0.171 H 108.2°. Best body text is #000000 at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#F5F257
RGBrgb(245, 242, 87)
HSLhsl(59, 89%, 65%)
HSVhsv(59, 64%, 96%)
CMYKcmyk(0%, 1.2%, 64.5%, 3.9%)
CIE-LABlab(93.28, -17.08, 72.12)
CIE-LCHlch(93.28, 74.11, 103.32°)
OKLaboklab(93.62% -0.0535 0.1625)
OKLCHoklch(93.62% 0.171 108.2)
XYZxyz(71.1311, 83.6070, 21.4058)
Luminance0.8360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F257 #575AF5
analogous
#F5A357 #F5F257 #A9F557
triadic
#F5F257 #57F5F2 #F257F5
tetradic
#F5F257 #57F5A3 #575AF5 #F557A9
square
#F5F257 #57F5A3 #575AF5 #F557A9
split-complementary
#F5F257 #57A9F5 #A357F5
monochromatic
#C6C20C #F2EE1D #F5F257 #F8F691 #FCFBCB

Accessibility & contrast

On white

1.19
#F5F257 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.72
#F5F257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F257
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F257#FFFFFF#000000##000000
##F5F2571.001.1917.7217.72
#FFFFFF1.191.0021.0021.00
#00000017.7221.001.001.00
##00000017.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE942
Deuteranopia (green-blind)
#FFEE61
Tritanopia (blue-blind)
#FFE3D2
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f5f257;
/* rgb */ color: rgb(245, 242, 87);
/* oklch */ color: oklch(93.6% 0.171 108.2);
Tailwind
colors: {
  custom: {
    50: '#fcf68e',
    500: '#f5f257',
    950: '#000000',
  },
}
SCSS
$custom: #f5f257;
$custom-light: #fcf68e;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f257",
  "rgb": {
    "r": 245,
    "g": 242,
    "b": 87
  },
  "hsl": {
    "h": 58.861,
    "s": 88.764,
    "l": 65.098
  },
  "oklch": {
    "l": 0.93618,
    "c": 0.17105,
    "h": 108.2
  },
  "luminance": 0.83605
}

Semantic roles & 50–950 ramp

primary
#F5F257
secondary
#2D30C3
accent
#04E500
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F5F257

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

Preview Lab → · Contrast checker → · Palette generator →

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