#F2F271#F2F271

#F2F271 is a very light, vivid yellow. Relative luminance 0.836; OKLCH L 93.6% C 0.151 H 109.0°. Best body text is #000000 at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#F2F271
RGBrgb(242, 242, 113)
HSLhsl(60, 83%, 70%)
HSVhsv(60, 53%, 95%)
CMYKcmyk(0%, 0%, 53.3%, 5.1%)
CIE-LABlab(93.27, -16.55, 61.22)
CIE-LCHlch(93.27, 63.42, 105.13°)
OKLaboklab(93.62% -0.0491 0.1427)
OKLCHoklch(93.62% 0.151 109)
XYZxyz(71.3526, 83.5756, 27.9926)
Luminance0.8357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F271 #7171F2
analogous
#F2B271 #F2F271 #B2F271
triadic
#F2F271 #71F2F2 #F271F2
tetradic
#F2F271 #71F2B2 #7171F2 #F271B2
square
#F2F271 #71F2B2 #7171F2 #F271B2
split-complementary
#F2F271 #71B2F2 #B271F2
monochromatic
#D5D514 #EDED39 #F2F271 #F7F7A9 #FCFCE1

Accessibility & contrast

On white

1.19
#F2F271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.71
#F2F271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F271
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F271#FFFFFF#000000##000000
##F2F2711.001.1917.7117.71
#FFFFFF1.191.0021.0021.00
#00000017.7121.001.001.00
##00000017.7121.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: #f2f271;
/* rgb */ color: rgb(242, 242, 113);
/* oklch */ color: oklch(93.6% 0.151 109.0);
Tailwind
colors: {
  custom: {
    50: '#f9f69d',
    500: '#f2f271',
    950: '#000000',
  },
}
SCSS
$custom: #f2f271;
$custom-light: #f9f69d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f271",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 60,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.93621,
    "c": 0.15094,
    "h": 109
  },
  "luminance": 0.83574
}

Semantic roles & 50–950 ramp

primary
#F2F271
secondary
#3C3CCB
accent
#06E006
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F271

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

Preview Lab → · Contrast checker → · Palette generator →

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