#F5E274#F5E274

#F5E274 is a very light, vivid yellow. Relative luminance 0.751; OKLCH L 90.6% C 0.132 H 99.7°. Best body text is #000000 at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#F5E274
RGBrgb(245, 226, 116)
HSLhsl(51, 87%, 71%)
HSVhsv(51, 53%, 96%)
CMYKcmyk(0%, 7.8%, 52.7%, 3.9%)
CIE-LABlab(89.43, -7.21, 55.46)
CIE-LCHlch(89.43, 55.92, 97.41°)
OKLaboklab(90.64% -0.0223 0.1305)
OKLCHoklch(90.64% 0.132 99.7)
XYZxyz(68.0072, 75.0687, 27.4270)
Luminance0.7507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E274 #7487F5
analogous
#F5A174 #F5E274 #C7F574
triadic
#F5E274 #74F5E2 #E274F5
tetradic
#F5E274 #74F5A1 #7487F5 #F574C7
square
#F5E274 #74F5A1 #7487F5 #F574C7
split-complementary
#F5E274 #74C7F5 #A174F5
monochromatic
#DFC010 #F1D63B #F5E274 #F9EEAD #FDF9E2

Accessibility & contrast

On white

1.31
#F5E274 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.01
#F5E274 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E274
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E274#FFFFFF#000000##000000
##F5E2741.001.3116.0116.01
#FFFFFF1.311.0021.0021.00
#00000016.0121.001.001.00
##00000016.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DD6A
Deuteranopia (green-blind)
#F9E479
Tritanopia (blue-blind)
#FFD5C9
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f5e274;
/* rgb */ color: rgb(245, 226, 116);
/* oklch */ color: oklch(90.6% 0.132 99.7);
Tailwind
colors: {
  custom: {
    50: '#fbea9f',
    500: '#f5e274',
    950: '#000000',
  },
}
SCSS
$custom: #f5e274;
$custom-light: #fbea9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e274",
  "rgb": {
    "r": 245,
    "g": 226,
    "b": 116
  },
  "hsl": {
    "h": 51.163,
    "s": 86.577,
    "l": 70.784
  },
  "oklch": {
    "l": 0.90637,
    "c": 0.13239,
    "h": 99.7
  },
  "luminance": 0.75066
}

Semantic roles & 50–950 ramp

primary
#F5E274
secondary
#3E53D0
accent
#23E302
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E274

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

Preview Lab → · Contrast checker → · Palette generator →

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