#F2F371#F2F371

#F2F371 is a very light, vivid yellow. Relative luminance 0.842; OKLCH L 93.8% C 0.152 H 109.4°. Best body text is #000000 at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#F2F371
RGBrgb(242, 243, 113)
HSLhsl(60, 84%, 70%)
HSVhsv(60, 53%, 95%)
CMYKcmyk(0.4%, 0%, 53.5%, 4.7%)
CIE-LABlab(93.53, -17.04, 61.51)
CIE-LCHlch(93.53, 63.83, 105.48°)
OKLaboklab(93.83% -0.0505 0.1434)
OKLCHoklch(93.83% 0.152 109.4)
XYZxyz(71.6510, 84.1725, 28.0921)
Luminance0.8417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F371 #7271F3
analogous
#F3B371 #F2F371 #B1F371
triadic
#F2F371 #71F2F3 #F371F2
tetradic
#F2F371 #71F3B3 #7271F3 #F371B1
square
#F2F371 #71F3B3 #7271F3 #F371B1
split-complementary
#F2F371 #71B1F3 #B371F3
monochromatic
#D6D712 #EDEE39 #F2F371 #F7F8A9 #FCFDE2

Accessibility & contrast

On white

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

On black

17.83
#F2F371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F371
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F371#FFFFFF#000000##000000
##F2F3711.001.1817.8317.83
#FFFFFF1.181.0021.0021.00
#00000017.8321.001.001.00
##00000017.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f371;
/* rgb */ color: rgb(242, 243, 113);
/* oklch */ color: oklch(93.8% 0.152 109.4);
Tailwind
colors: {
  custom: {
    50: '#f9f69e',
    500: '#f2f371',
    950: '#000000',
  },
}
SCSS
$custom: #f2f371;
$custom-light: #f9f69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f371",
  "rgb": {
    "r": 242,
    "g": 243,
    "b": 113
  },
  "hsl": {
    "h": 60.462,
    "s": 84.416,
    "l": 69.804
  },
  "oklch": {
    "l": 0.93828,
    "c": 0.15199,
    "h": 109.4
  },
  "luminance": 0.84171
}

Semantic roles & 50–950 ramp

primary
#F2F371
secondary
#3D3BCD
accent
#05E106
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F371

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

Preview Lab → · Contrast checker → · Palette generator →

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