#F2E271#F2E271

#F2E271 is a very light, vivid yellow. Relative luminance 0.745; OKLCH L 90.3% C 0.135 H 101.3°. Best body text is #000000 at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#F2E271
RGBrgb(242, 226, 113)
HSLhsl(53, 83%, 70%)
HSVhsv(53, 53%, 95%)
CMYKcmyk(0%, 6.6%, 53.3%, 5.1%)
CIE-LABlab(89.14, -8.66, 56.45)
CIE-LCHlch(89.14, 57.11, 98.72°)
OKLaboklab(90.34% -0.0266 0.1324)
OKLCHoklch(90.34% 0.135 101.3)
XYZxyz(66.7971, 74.4646, 26.4741)
Luminance0.7446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E271 #7181F2
analogous
#F2A271 #F2E271 #C2F271
triadic
#F2E271 #71F2E2 #E271F2
tetradic
#F2E271 #71F2A2 #7181F2 #F271C2
square
#F2E271 #71F2A2 #7181F2 #F271C2
split-complementary
#F2E271 #71C2F2 #A271F2
monochromatic
#D5BD14 #EDD739 #F2E271 #F7EDA9 #FCF9E1

Accessibility & contrast

On white

1.32
#F2E271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.89
#F2E271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E271
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E271#FFFFFF#000000##000000
##F2E2711.001.3215.8915.89
#FFFFFF1.321.0021.0021.00
#00000015.8921.001.001.00
##00000015.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DC66
Deuteranopia (green-blind)
#F9E376
Tritanopia (blue-blind)
#FFD5C8
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f2e271;
/* rgb */ color: rgb(242, 226, 113);
/* oklch */ color: oklch(90.3% 0.135 101.3);
Tailwind
colors: {
  custom: {
    50: '#f9ea9d',
    500: '#f2e271',
    950: '#000000',
  },
}
SCSS
$custom: #f2e271;
$custom-light: #f9ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e271",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 52.558,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.90341,
    "c": 0.13506,
    "h": 101.3
  },
  "luminance": 0.74462
}

Semantic roles & 50–950 ramp

primary
#F2E271
secondary
#3C4ECB
accent
#21E006
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2E271

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

Preview Lab → · Contrast checker → · Palette generator →

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