#F4F271#F4F271

#F4F271 is a very light, vivid yellow. Relative luminance 0.839; OKLCH L 93.8% C 0.151 H 108.2°. Best body text is #000000 at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#F4F271
RGBrgb(244, 242, 113)
HSLhsl(59, 86%, 70%)
HSVhsv(59, 54%, 96%)
CMYKcmyk(0%, 0.8%, 53.7%, 4.3%)
CIE-LABlab(93.42, -15.76, 61.44)
CIE-LCHlch(93.42, 63.42, 104.39°)
OKLaboklab(93.78% -0.047 0.1432)
OKLCHoklch(93.78% 0.151 108.2)
XYZxyz(72.0429, 83.9316, 28.0250)
Luminance0.8393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F4F271 #7173F4
analogous
#F4B171 #F4F271 #B4F471
triadic
#F4F271 #71F4F2 #F271F4
tetradic
#F4F271 #71F4B1 #7173F4 #F471B4
square
#F4F271 #71F4B1 #7173F4 #F471B4
split-complementary
#F4F271 #71B4F4 #B171F4
monochromatic
#DAD711 #F0ED38 #F4F271 #F8F7AA #FDFCE3

Accessibility & contrast

On white

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

On black

17.79
#F4F271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F4F271
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F4F271#FFFFFF#000000##000000
##F4F2711.001.1817.7917.79
#FFFFFF1.181.0021.0021.00
#00000017.7921.001.001.00
##00000017.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE964
Deuteranopia (green-blind)
#FFEE78
Tritanopia (blue-blind)
#FFE5D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f4f271;
/* rgb */ color: rgb(244, 242, 113);
/* oklch */ color: oklch(93.8% 0.151 108.2);
Tailwind
colors: {
  custom: {
    50: '#faf69d',
    500: '#f4f271',
    950: '#000000',
  },
}
SCSS
$custom: #f4f271;
$custom-light: #faf69d;
$custom-dark: #000000;
JSON
{
  "hex": "#f4f271",
  "rgb": {
    "r": 244,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 59.084,
    "s": 85.621,
    "l": 70
  },
  "oklch": {
    "l": 0.93782,
    "c": 0.15066,
    "h": 108.2
  },
  "luminance": 0.8393
}

Semantic roles & 50–950 ramp

primary
#F4F271
secondary
#3B3DCE
accent
#07E203
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F4F271

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

Preview Lab → · Contrast checker → · Palette generator →

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