#F2D271#F2D271

#F2D271 is a very light, vivid yellow. Relative luminance 0.662; OKLCH L 87.1% C 0.122 H 91.5°. Best body text is #000000 at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#F2D271
RGBrgb(242, 210, 113)
HSLhsl(45, 83%, 70%)
HSVhsv(45, 53%, 95%)
CMYKcmyk(0%, 13.2%, 53.3%, 5.1%)
CIE-LABlab(85.08, -0.56, 51.66)
CIE-LCHlch(85.08, 51.66, 90.62°)
OKLaboklab(87.13% -0.0032 0.122)
OKLCHoklch(87.13% 0.122 91.5)
XYZxyz(62.6476, 66.1657, 25.0910)
Luminance0.6616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D271 #7191F2
analogous
#F29171 #F2D271 #D2F271
triadic
#F2D271 #71F2D2 #D271F2
tetradic
#F2D271 #71F291 #7191F2 #F271D2
square
#F2D271 #71F291 #7191F2 #F271D2
split-complementary
#F2D271 #71D2F2 #9171F2
monochromatic
#D5A514 #EDC039 #F2D271 #F7E4A9 #FCF6E1

Accessibility & contrast

On white

1.48
#F2D271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.23
#F2D271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D271
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D271#FFFFFF#000000##000000
##F2D2711.001.4814.2314.23
#FFFFFF1.481.0021.0021.00
#00000014.2321.001.001.00
##00000014.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CF68
Deuteranopia (green-blind)
#EDD875
Tritanopia (blue-blind)
#FFC4BC
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f2d271;
/* rgb */ color: rgb(242, 210, 113);
/* oklch */ color: oklch(87.1% 0.122 91.5);
Tailwind
colors: {
  custom: {
    50: '#f9df9c',
    500: '#f2d271',
    950: '#000000',
  },
}
SCSS
$custom: #f2d271;
$custom-light: #f9df9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d271",
  "rgb": {
    "r": 242,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 45.116,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.87128,
    "c": 0.12204,
    "h": 91.5
  },
  "luminance": 0.66163
}

Semantic roles & 50–950 ramp

primary
#F2D271
secondary
#3C5FCB
accent
#3CE006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D271

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

Preview Lab → · Contrast checker → · Palette generator →

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