#FAF381#FAF381

#FAF381 is a very light, vivid yellow. Relative luminance 0.860; OKLCH L 94.7% C 0.136 H 105.6°. Best body text is #000000 at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#FAF381
RGBrgb(250, 243, 129)
HSLhsl(57, 92%, 74%)
HSVhsv(57, 48%, 98%)
CMYKcmyk(0%, 2.8%, 48.4%, 2%)
CIE-LABlab(94.32, -12.57, 55.33)
CIE-LCHlch(94.32, 56.74, 102.80°)
OKLaboklab(94.67% -0.0366 0.1313)
OKLCHoklch(94.67% 0.136 105.6)
XYZxyz(75.4393, 86.0123, 33.3927)
Luminance0.8601 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF381 #8188FA
analogous
#FAB781 #FAF381 #C5FA81
triadic
#FAF381 #81FAF3 #F381FA
tetradic
#FAF381 #81FAB7 #8188FA #FA81C5
square
#FAF381 #81FAB7 #8188FA #FA81C5
split-complementary
#FAF381 #81C5FA #B781FA
monochromatic
#F5E80B #F8ED46 #FAF381 #FCF9BC #FEFCE2

Accessibility & contrast

On white

1.15
#FAF381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.20
#FAF381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF381
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF381#FFFFFF#000000##000000
##FAF3811.001.1518.2018.20
#FFFFFF1.151.0021.0021.00
#00000018.2021.001.001.00
##00000018.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC77
Deuteranopia (green-blind)
#FFF186
Tritanopia (blue-blind)
#FFE6D9
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #faf381;
/* rgb */ color: rgb(250, 243, 129);
/* oklch */ color: oklch(94.7% 0.136 105.6);
Tailwind
colors: {
  custom: {
    50: '#fef6a8',
    500: '#faf381',
    950: '#000000',
  },
}
SCSS
$custom: #faf381;
$custom-light: #fef6a8;
$custom-dark: #000000;
JSON
{
  "hex": "#faf381",
  "rgb": {
    "r": 250,
    "g": 243,
    "b": 129
  },
  "hsl": {
    "h": 56.529,
    "s": 92.366,
    "l": 74.314
  },
  "oklch": {
    "l": 0.94665,
    "c": 0.13629,
    "h": 105.6
  },
  "luminance": 0.8601
}

Semantic roles & 50–950 ramp

primary
#FAF381
secondary
#4850D8
accent
#0DE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FAF381

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

Preview Lab → · Contrast checker → · Palette generator →

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