#FAF270#FAF270

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

Color values

HEX#FAF270
RGBrgb(250, 242, 112)
HSLhsl(57, 93%, 71%)
HSVhsv(57, 55%, 98%)
CMYKcmyk(0%, 3.2%, 55.2%, 2%)
CIE-LABlab(93.88, -13.45, 62.53)
CIE-LCHlch(93.88, 63.96, 102.14°)
OKLaboklab(94.26% -0.0408 0.1453)
OKLCHoklch(94.26% 0.151 105.7)
XYZxyz(74.1034, 85.0004, 27.8293)
Luminance0.8500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF270 #7078FA
analogous
#FAAD70 #FAF270 #BDFA70
triadic
#FAF270 #70FAF2 #F270FA
tetradic
#FAF270 #70FAAD #7078FA #FA70BD
square
#FAF270 #70FAAD #7078FA #FA70BD
split-complementary
#FAF270 #70BDFA #AD70FA
monochromatic
#E8DB08 #F8ED35 #FAF270 #FCF7AB #FEFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FAF270#FFFFFF#000000##000000
##FAF2701.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)
#FFEA63
Deuteranopia (green-blind)
#FFF077
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #faf270;
/* rgb */ color: rgb(250, 242, 112);
/* oklch */ color: oklch(94.3% 0.151 105.7);
Tailwind
colors: {
  custom: {
    50: '#fff69d',
    500: '#faf270',
    950: '#000000',
  },
}
SCSS
$custom: #faf270;
$custom-light: #fff69d;
$custom-dark: #000000;
JSON
{
  "hex": "#faf270",
  "rgb": {
    "r": 250,
    "g": 242,
    "b": 112
  },
  "hsl": {
    "h": 56.522,
    "s": 93.243,
    "l": 70.98
  },
  "oklch": {
    "l": 0.94262,
    "c": 0.15091,
    "h": 105.7
  },
  "luminance": 0.84998
}

Semantic roles & 50–950 ramp

primary
#FAF270
secondary
#3942D5
accent
#0DE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF270

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

Preview Lab → · Contrast checker → · Palette generator →

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