#F2E272#F2E272

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

Color values

HEX#F2E272
RGBrgb(242, 226, 114)
HSLhsl(53, 83%, 70%)
HSVhsv(53, 53%, 95%)
CMYKcmyk(0%, 6.6%, 52.9%, 5.1%)
CIE-LABlab(89.15, -8.58, 56.00)
CIE-LCHlch(89.15, 56.65, 98.71°)
OKLaboklab(90.35% -0.0262 0.1316)
OKLCHoklch(90.35% 0.134 101.3)
XYZxyz(66.8537, 74.4873, 26.7723)
Luminance0.7449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E272 #7282F2
analogous
#F2A272 #F2E272 #C2F272
triadic
#F2E272 #72F2E2 #E272F2
tetradic
#F2E272 #72F2A2 #7282F2 #F272C2
square
#F2E272 #72F2A2 #7282F2 #F272C2
split-complementary
#F2E272 #72C2F2 #A272F2
monochromatic
#D6BE14 #EDD63A #F2E272 #F7EEAA #FCF9E2

Accessibility & contrast

On white

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

On black

15.90
#F2E272 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E272
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E272#FFFFFF#000000##000000
##F2E2721.001.3215.9015.90
#FFFFFF1.321.0021.0021.00
#00000015.9021.001.001.00
##00000015.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DC67
Deuteranopia (green-blind)
#F8E377
Tritanopia (blue-blind)
#FFD5C9
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f2e272;
/* rgb */ color: rgb(242, 226, 114);
/* oklch */ color: oklch(90.4% 0.134 101.3);
Tailwind
colors: {
  custom: {
    50: '#f9ea9d',
    500: '#f2e272',
    950: '#000000',
  },
}
SCSS
$custom: #f2e272;
$custom-light: #f9ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e272",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 114
  },
  "hsl": {
    "h": 52.5,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.90353,
    "c": 0.13414,
    "h": 101.3
  },
  "luminance": 0.74485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2E272

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

Preview Lab → · Contrast checker → · Palette generator →

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