#F5F278#F5F278

#F5F278 is a very light, vivid yellow. Relative luminance 0.843; OKLCH L 93.9% C 0.144 H 107.6°. Best body text is #000000 at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#F5F278
RGBrgb(245, 242, 120)
HSLhsl(59, 86%, 72%)
HSVhsv(59, 51%, 96%)
CMYKcmyk(0%, 1.2%, 51%, 3.9%)
CIE-LABlab(93.57, -14.81, 58.49)
CIE-LCHlch(93.57, 60.33, 104.21°)
OKLaboklab(93.94% -0.0436 0.1375)
OKLCHoklch(93.94% 0.144 107.6)
XYZxyz(72.8003, 84.2747, 30.1974)
Luminance0.8427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F278 #787BF5
analogous
#F5B478 #F5F278 #BAF578
triadic
#F5F278 #78F5F2 #F278F5
tetradic
#F5F278 #78F5B4 #787BF5 #F578BA
square
#F5F278 #78F5B4 #787BF5 #F578BA
split-complementary
#F5F278 #78BAF5 #B478F5
monochromatic
#E2DD11 #F1ED3F #F5F278 #F9F7B1 #FDFCE3

Accessibility & contrast

On white

1.18
#F5F278 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.85
#F5F278 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F278
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F278#FFFFFF#000000##000000
##F5F2781.001.1817.8517.85
#FFFFFF1.181.0021.0021.00
#00000017.8521.001.001.00
##00000017.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA6C
Deuteranopia (green-blind)
#FFEF7E
Tritanopia (blue-blind)
#FFE5D6
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f5f278;
/* rgb */ color: rgb(245, 242, 120);
/* oklch */ color: oklch(93.9% 0.144 107.6);
Tailwind
colors: {
  custom: {
    50: '#fbf6a2',
    500: '#f5f278',
    950: '#000000',
  },
}
SCSS
$custom: #f5f278;
$custom-light: #fbf6a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f278",
  "rgb": {
    "r": 245,
    "g": 242,
    "b": 120
  },
  "hsl": {
    "h": 58.56,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.93943,
    "c": 0.14422,
    "h": 107.6
  },
  "luminance": 0.84273
}

Semantic roles & 50–950 ramp

primary
#F5F278
secondary
#4145D0
accent
#08E303
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F278

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

Preview Lab → · Contrast checker → · Palette generator →

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