#AFA23B#AFA23B

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

Color values

HEX#AFA23B
RGBrgb(175, 162, 59)
HSLhsl(53, 50%, 46%)
HSVhsv(53, 66%, 69%)
CMYKcmyk(0%, 7.4%, 66.3%, 31.4%)
CIE-LABlab(65.96, -7.66, 53.26)
CIE-LCHlch(65.96, 53.81, 98.19°)
OKLaboklab(70.39% -0.0257 0.1203)
OKLCHoklch(70.39% 0.123 102.1)
XYZxyz(31.3902, 35.2717, 9.2915)
Luminance0.3527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA23B #3B48AF
analogous
#AF683B #AFA23B #82AF3B
triadic
#AFA23B #3BAFA2 #A23BAF
tetradic
#AFA23B #3BAF68 #3B48AF #AF3B82
square
#AFA23B #3BAF68 #3B48AF #AF3B82
split-complementary
#AFA23B #3B82AF #683BAF
monochromatic
#534D1C #81782C #AFA23B #C9BD5E #D8D08C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA23B#FFFFFF#000000##000000
##AFA23B1.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)
#B09D2E
Deuteranopia (green-blind)
#B4A341
Tritanopia (blue-blind)
#BC978D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa23b;
/* rgb */ color: rgb(175, 162, 59);
/* oklch */ color: oklch(70.4% 0.123 102.1);
Tailwind
colors: {
  custom: {
    50: '#cabd76',
    500: '#afa23b',
    950: '#000000',
  },
}
SCSS
$custom: #afa23b;
$custom-light: #cabd76;
$custom-dark: #000000;
JSON
{
  "hex": "#afa23b",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 59
  },
  "hsl": {
    "h": 53.276,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70393,
    "c": 0.123,
    "h": 102.1
  },
  "luminance": 0.3527
}

Semantic roles & 50–950 ramp

primary
#AFA23B
secondary
#838AC3
accent
#5ED94F
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA23B

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

Preview Lab → · Contrast checker → · Palette generator →

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