#F5F671#F5F671

#F5F671 is a very light, vivid yellow. Relative luminance 0.865; OKLCH L 94.7% C 0.155 H 109.4°. Best body text is #000000 at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#F5F671
RGBrgb(245, 246, 113)
HSLhsl(60, 88%, 70%)
HSVhsv(60, 54%, 96%)
CMYKcmyk(0.4%, 0%, 54.1%, 3.5%)
CIE-LABlab(94.53, -17.30, 62.73)
CIE-LCHlch(94.53, 65.07, 105.42°)
OKLaboklab(94.69% -0.0514 0.1459)
OKLCHoklch(94.69% 0.155 109.4)
XYZxyz(73.5945, 86.5181, 28.4425)
Luminance0.8652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F671 #7271F6
analogous
#F6B471 #F5F671 #B2F671
triadic
#F5F671 #71F5F6 #F671F5
tetradic
#F5F671 #71F6B4 #7271F6 #F671B2
square
#F5F671 #71F6B4 #7271F6 #F671B2
split-complementary
#F5F671 #71B2F6 #B471F6
monochromatic
#DDDE0E #F1F237 #F5F671 #F9FAAB #FDFDE2

Accessibility & contrast

On white

1.15
#F5F671 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.30
#F5F671 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F671
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F671#FFFFFF#000000##000000
##F5F6711.001.1518.3018.30
#FFFFFF1.151.0021.0021.00
#00000018.3021.001.001.00
##00000018.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED63
Deuteranopia (green-blind)
#FFF178
Tritanopia (blue-blind)
#FFE8D9
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f5f671;
/* rgb */ color: rgb(245, 246, 113);
/* oklch */ color: oklch(94.7% 0.155 109.4);
Tailwind
colors: {
  custom: {
    50: '#fbf99e',
    500: '#f5f671',
    950: '#000000',
  },
}
SCSS
$custom: #f5f671;
$custom-light: #fbf99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f671",
  "rgb": {
    "r": 245,
    "g": 246,
    "b": 113
  },
  "hsl": {
    "h": 60.451,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.94688,
    "c": 0.1547,
    "h": 109.4
  },
  "luminance": 0.86516
}

Semantic roles & 50–950 ramp

primary
#F5F671
secondary
#3C3BD0
accent
#01E503
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F671

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

Preview Lab → · Contrast checker → · Palette generator →

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