#F5F271#F5F271

#F5F271 is a very light, vivid yellow. Relative luminance 0.841; OKLCH L 93.9% C 0.151 H 107.8°. Best body text is #000000 at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#F5F271
RGBrgb(245, 242, 113)
HSLhsl(59, 87%, 70%)
HSVhsv(59, 54%, 96%)
CMYKcmyk(0%, 1.2%, 53.9%, 3.9%)
CIE-LABlab(93.50, -15.36, 61.55)
CIE-LCHlch(93.50, 63.43, 104.01°)
OKLaboklab(93.86% -0.0459 0.1434)
OKLCHoklch(93.86% 0.151 107.8)
XYZxyz(72.3910, 84.1110, 28.0413)
Luminance0.8411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F271 #7174F5
analogous
#F5B071 #F5F271 #B6F571
triadic
#F5F271 #71F5F2 #F271F5
tetradic
#F5F271 #71F5B0 #7174F5 #F571B6
square
#F5F271 #71F5B0 #7174F5 #F571B6
split-complementary
#F5F271 #71B6F5 #B071F5
monochromatic
#DCD710 #F1ED38 #F5F271 #F9F7AA #FDFCE2

Accessibility & contrast

On white

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

On black

17.82
#F5F271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F271
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F271#FFFFFF#000000##000000
##F5F2711.001.1817.8217.82
#FFFFFF1.181.0021.0021.00
#00000017.8221.001.001.00
##00000017.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA64
Deuteranopia (green-blind)
#FFEF78
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f5f271;
/* rgb */ color: rgb(245, 242, 113);
/* oklch */ color: oklch(93.9% 0.151 107.8);
Tailwind
colors: {
  custom: {
    50: '#fbf69e',
    500: '#f5f271',
    950: '#000000',
  },
}
SCSS
$custom: #f5f271;
$custom-light: #fbf69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f271",
  "rgb": {
    "r": 245,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 58.636,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.93863,
    "c": 0.15054,
    "h": 107.8
  },
  "luminance": 0.84109
}

Semantic roles & 50–950 ramp

primary
#F5F271
secondary
#3B3ECF
accent
#07E302
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F271

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

Preview Lab → · Contrast checker → · Palette generator →

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