#AFA23A#AFA23A

#AFA23A is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.4% C 0.124 H 102.1°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#AFA23A
RGBrgb(175, 162, 58)
HSLhsl(53, 50%, 46%)
HSVhsv(53, 67%, 69%)
CMYKcmyk(0%, 7.4%, 66.9%, 31.4%)
CIE-LABlab(65.95, -7.72, 53.67)
CIE-LCHlch(65.95, 54.23, 98.19°)
OKLaboklab(70.38% -0.026 0.121)
OKLCHoklch(70.38% 0.124 102.1)
XYZxyz(31.3645, 35.2614, 9.1562)
Luminance0.3526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA23A #3A47AF
analogous
#AF673A #AFA23A #81AF3A
triadic
#AFA23A #3AAFA2 #A23AAF
tetradic
#AFA23A #3AAF67 #3A47AF #AF3A81
square
#AFA23A #3AAF67 #3A47AF #AF3A81
split-complementary
#AFA23A #3A81AF #673AAF
monochromatic
#534D1C #81772B #AFA23A #C9BD5D #D9D08B

Accessibility & contrast

On white

2.61
#AFA23A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#AFA23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA23A
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA23A#FFFFFF#000000##000000
##AFA23A1.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D2C
Deuteranopia (green-blind)
#B4A340
Tritanopia (blue-blind)
#BC978D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa23a;
/* rgb */ color: rgb(175, 162, 58);
/* oklch */ color: oklch(70.4% 0.124 102.1);
Tailwind
colors: {
  custom: {
    50: '#cabd76',
    500: '#afa23a',
    950: '#000000',
  },
}
SCSS
$custom: #afa23a;
$custom-light: #cabd76;
$custom-dark: #000000;
JSON
{
  "hex": "#afa23a",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 58
  },
  "hsl": {
    "h": 53.333,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.70384,
    "c": 0.12376,
    "h": 102.1
  },
  "luminance": 0.3526
}

Semantic roles & 50–950 ramp

primary
#AFA23A
secondary
#8289C3
accent
#5EDA4E
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA23A

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

Preview Lab → · Contrast checker → · Palette generator →

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