#FAF398#FAF398

#FAF398 is a very light, moderate yellow. Relative luminance 0.867; OKLCH L 95.0% C 0.113 H 104.5°. Best body text is #000000 at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#FAF398
RGBrgb(250, 243, 152)
HSLhsl(56, 91%, 79%)
HSVhsv(56, 39%, 98%)
CMYKcmyk(0%, 2.8%, 39.2%, 2%)
CIE-LABlab(94.61, -10.36, 44.69)
CIE-LCHlch(94.61, 45.88, 103.05°)
OKLaboklab(94.99% -0.0282 0.109)
OKLCHoklch(94.99% 0.113 104.5)
XYZxyz(77.1437, 86.6941, 42.3696)
Luminance0.8669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF398 #989FFA
analogous
#FAC298 #FAF398 #D0FA98
triadic
#FAF398 #98FAF3 #F398FA
tetradic
#FAF398 #98FAC2 #989FFA #FA98D0
square
#FAF398 #98FAC2 #989FFA #FA98D0
split-complementary
#FAF398 #98D0FA #C298FA
monochromatic
#F4E523 #F7EC5E #FAF398 #FDFAD2 #FEFCE2

Accessibility & contrast

On white

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

On black

18.34
#FAF398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF398
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF398#FFFFFF#000000##000000
##FAF3981.001.1518.3418.34
#FFFFFF1.151.0021.0021.00
#00000018.3421.001.001.00
##00000018.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED91
Deuteranopia (green-blind)
#FFF29C
Tritanopia (blue-blind)
#FFE8DD
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #faf398;
/* rgb */ color: rgb(250, 243, 152);
/* oklch */ color: oklch(95.0% 0.113 104.5);
Tailwind
colors: {
  custom: {
    50: '#fdf6b7',
    500: '#faf398',
    950: '#000000',
  },
}
SCSS
$custom: #faf398;
$custom-light: #fdf6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#faf398",
  "rgb": {
    "r": 250,
    "g": 243,
    "b": 152
  },
  "hsl": {
    "h": 55.714,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.9499,
    "c": 0.1126,
    "h": 104.5
  },
  "luminance": 0.86692
}

Semantic roles & 50–950 ramp

primary
#FAF398
secondary
#5C65DB
accent
#10E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FAF398

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

Preview Lab → · Contrast checker → · Palette generator →

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