#F5EF7F#F5EF7F

#F5EF7F is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.4% C 0.134 H 106.0°. Best body text is #000000 at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#F5EF7F
RGBrgb(245, 239, 127)
HSLhsl(57, 86%, 73%)
HSVhsv(57, 48%, 96%)
CMYKcmyk(0%, 2.4%, 48.2%, 3.9%)
CIE-LABlab(92.87, -12.74, 54.44)
CIE-LCHlch(92.87, 55.91, 103.18°)
OKLaboklab(93.41% -0.037 0.1292)
OKLCHoklch(93.41% 0.134 106)
XYZxyz(72.3552, 82.6798, 32.2219)
Luminance0.8268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5EF7F #7F85F5
analogous
#F5B47F #F5EF7F #C0F57F
triadic
#F5EF7F #7FF5EF #EF7FF5
tetradic
#F5EF7F #7FF5B4 #7F85F5 #F57FC0
square
#F5EF7F #7FF5B4 #7F85F5 #F57FC0
split-complementary
#F5EF7F #7FC0F5 #B47FF5
monochromatic
#E8DD12 #F1E846 #F5EF7F #F9F6B8 #FDFBE3

Accessibility & contrast

On white

1.20
#F5EF7F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.54
#F5EF7F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5EF7F
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5EF7F#FFFFFF#000000##000000
##F5EF7F1.001.2017.5417.54
#FFFFFF1.201.0021.0021.00
#00000017.5421.001.001.00
##00000017.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE875
Deuteranopia (green-blind)
#FFED84
Tritanopia (blue-blind)
#FFE2D5
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f5ef7f;
/* rgb */ color: rgb(245, 239, 127);
/* oklch */ color: oklch(93.4% 0.134 106.0);
Tailwind
colors: {
  custom: {
    50: '#faf4a6',
    500: '#f5ef7f',
    950: '#000000',
  },
}
SCSS
$custom: #f5ef7f;
$custom-light: #faf4a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ef7f",
  "rgb": {
    "r": 245,
    "g": 239,
    "b": 127
  },
  "hsl": {
    "h": 56.949,
    "s": 85.507,
    "l": 72.941
  },
  "oklch": {
    "l": 0.93414,
    "c": 0.13443,
    "h": 106
  },
  "luminance": 0.82678
}

Semantic roles & 50–950 ramp

primary
#F5EF7F
secondary
#474ED1
accent
#0FE203
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#181710
muted
#868580

Preview Lab

Preview with #F5EF7F

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

Preview Lab → · Contrast checker → · Palette generator →

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