#AFA823#AFA823

#AFA823 is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.5% C 0.143 H 106.3°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA823
RGBrgb(175, 168, 35)
HSLhsl(57, 67%, 41%)
HSVhsv(57, 80%, 69%)
CMYKcmyk(0%, 4%, 80%, 31.4%)
CIE-LABlab(67.46, -11.95, 63.42)
CIE-LCHlch(67.46, 64.53, 100.67°)
OKLaboklab(71.54% -0.0402 0.1374)
OKLCHoklch(71.54% 0.143 106.3)
XYZxyz(31.9866, 37.2418, 7.0933)
Luminance0.3724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA823 #232AAF
analogous
#AF6223 #AFA823 #70AF23
triadic
#AFA823 #23AFA8 #A823AF
tetradic
#AFA823 #23AF62 #232AAF #AF2370
square
#AFA823 #23AF62 #232AAF #AF2370
split-complementary
#AFA823 #2370AF #6223AF
monochromatic
#49460F #7C7719 #AFA823 #D7CF38 #E1DB6B

Accessibility & contrast

On white

2.49
#AFA823 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AFA823 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA823
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA823#FFFFFF#000000##000000
##AFA8231.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A100
Deuteranopia (green-blind)
#BAA72F
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa823;
/* rgb */ color: rgb(175, 168, 35);
/* oklch */ color: oklch(71.5% 0.143 106.3);
Tailwind
colors: {
  custom: {
    50: '#cbc16b',
    500: '#afa823',
    950: '#000000',
  },
}
SCSS
$custom: #afa823;
$custom-light: #cbc16b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa823",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 35
  },
  "hsl": {
    "h": 57,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.71538,
    "c": 0.1432,
    "h": 106.3
  },
  "luminance": 0.37241
}

Semantic roles & 50–950 ramp

primary
#AFA823
secondary
#666BC7
accent
#47EA3E
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA823

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

Preview Lab → · Contrast checker → · Palette generator →

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