#FAF271#FAF271

#FAF271 is a very light, vivid yellow. Relative luminance 0.850; OKLCH L 94.3% C 0.150 H 105.7°. Best body text is #000000 at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#FAF271
RGBrgb(250, 242, 113)
HSLhsl(56, 93%, 71%)
HSVhsv(56, 55%, 98%)
CMYKcmyk(0%, 3.2%, 54.8%, 2%)
CIE-LABlab(93.89, -13.37, 62.10)
CIE-LCHlch(93.89, 63.52, 102.15°)
OKLaboklab(94.27% -0.0405 0.1445)
OKLCHoklch(94.27% 0.15 105.7)
XYZxyz(74.1593, 85.0228, 28.1242)
Luminance0.8502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF271 #7179FA
analogous
#FAAD71 #FAF271 #BDFA71
triadic
#FAF271 #71FAF2 #F271FA
tetradic
#FAF271 #71FAAD #7179FA #FA71BD
square
#FAF271 #71FAAD #7179FA #FA71BD
split-complementary
#FAF271 #71BDFA #AD71FA
monochromatic
#E8DB08 #F8ED36 #FAF271 #FCF7AC #FEFCE1

Accessibility & contrast

On white

1.17
#FAF271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.00
#FAF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF271
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF271#FFFFFF#000000##000000
##FAF2711.001.1718.0018.00
#FFFFFF1.171.0021.0021.00
#00000018.0021.001.001.00
##00000018.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA64
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #faf271;
/* rgb */ color: rgb(250, 242, 113);
/* oklch */ color: oklch(94.3% 0.150 105.7);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#faf271',
    950: '#000000',
  },
}
SCSS
$custom: #faf271;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#faf271",
  "rgb": {
    "r": 250,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 56.496,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.94273,
    "c": 0.15004,
    "h": 105.7
  },
  "luminance": 0.85021
}

Semantic roles & 50–950 ramp

primary
#FAF271
secondary
#3A43D5
accent
#0DE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF271

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

Preview Lab → · Contrast checker → · Palette generator →

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