#F5D751#F5D751

#F5D751 is a very light, vivid yellow. Relative luminance 0.686; OKLCH L 88.1% C 0.152 H 96.4°. Best body text is #000000 at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#F5D751
RGBrgb(245, 215, 81)
HSLhsl(49, 89%, 64%)
HSVhsv(49, 67%, 96%)
CMYKcmyk(0%, 12.2%, 66.9%, 3.9%)
CIE-LABlab(86.31, -4.02, 67.28)
CIE-LCHlch(86.31, 67.40, 93.42°)
OKLaboklab(88.07% -0.017 0.1513)
OKLCHoklch(88.07% 0.152 96.4)
XYZxyz(63.4448, 68.6106, 17.6843)
Luminance0.6861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D751 #516FF5
analogous
#F58551 #F5D751 #C1F551
triadic
#F5D751 #51F5D7 #D751F5
tetradic
#F5D751 #51F585 #516FF5 #F551C1
square
#F5D751 #51F585 #516FF5 #F551C1
split-complementary
#F5D751 #51C1F5 #8551F5
monochromatic
#C19F0B #F2CA17 #F5D751 #F8E48B #FCF2C5

Accessibility & contrast

On white

1.43
#F5D751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.72
#F5D751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D751
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D751#FFFFFF#000000##000000
##F5D7511.001.4314.7214.72
#FFFFFF1.431.0021.0021.00
#00000014.7221.001.001.00
##00000014.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD23F
Deuteranopia (green-blind)
#F4DC58
Tritanopia (blue-blind)
#FFC7BB
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f5d751;
/* rgb */ color: rgb(245, 215, 81);
/* oklch */ color: oklch(88.1% 0.152 96.4);
Tailwind
colors: {
  custom: {
    50: '#fce388',
    500: '#f5d751',
    950: '#000000',
  },
}
SCSS
$custom: #f5d751;
$custom-light: #fce388;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d751",
  "rgb": {
    "r": 245,
    "g": 215,
    "b": 81
  },
  "hsl": {
    "h": 49.024,
    "s": 89.13,
    "l": 63.922
  },
  "oklch": {
    "l": 0.88067,
    "c": 0.15228,
    "h": 96.4
  },
  "luminance": 0.68607
}

Semantic roles & 50–950 ramp

primary
#F5D751
secondary
#2C47BE
accent
#2AE600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F5D751

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

Preview Lab → · Contrast checker → · Palette generator →

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