#F5F270#F5F270

#F5F270 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#F5F270
RGBrgb(245, 242, 112)
HSLhsl(59, 87%, 70%)
HSVhsv(59, 54%, 96%)
CMYKcmyk(0%, 1.2%, 54.3%, 3.9%)
CIE-LABlab(93.49, -15.44, 61.98)
CIE-LCHlch(93.49, 63.87, 103.99°)
OKLaboklab(93.85% -0.0462 0.1442)
OKLCHoklch(93.85% 0.151 107.8)
XYZxyz(72.3350, 84.0886, 27.7464)
Luminance0.8409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F270 #7073F5
analogous
#F5B070 #F5F270 #B5F570
triadic
#F5F270 #70F5F2 #F270F5
tetradic
#F5F270 #70F5B0 #7073F5 #F570B5
square
#F5F270 #70F5B0 #7073F5 #F570B5
split-complementary
#F5F270 #70B5F5 #B070F5
monochromatic
#DBD70F #F1ED37 #F5F270 #F9F7A9 #FDFCE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F5F270#FFFFFF#000000##000000
##F5F2701.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)
#FFE963
Deuteranopia (green-blind)
#FFEF77
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f5f270;
/* rgb */ color: rgb(245, 242, 112);
/* oklch */ color: oklch(93.9% 0.151 107.8);
Tailwind
colors: {
  custom: {
    50: '#fbf69d',
    500: '#f5f270',
    950: '#000000',
  },
}
SCSS
$custom: #f5f270;
$custom-light: #fbf69d;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f270",
  "rgb": {
    "r": 245,
    "g": 242,
    "b": 112
  },
  "hsl": {
    "h": 58.647,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.93853,
    "c": 0.15142,
    "h": 107.8
  },
  "luminance": 0.84087
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F5F270

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

Preview Lab → · Contrast checker → · Palette generator →

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