#AFA23D#AFA23D

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

Color values

HEX#AFA23D
RGBrgb(175, 162, 61)
HSLhsl(53, 48%, 46%)
HSVhsv(53, 65%, 69%)
CMYKcmyk(0%, 7.4%, 65.1%, 31.4%)
CIE-LABlab(65.98, -7.54, 52.42)
CIE-LCHlch(65.98, 52.95, 98.18°)
OKLaboklab(70.41% -0.0252 0.1188)
OKLCHoklch(70.41% 0.121 102)
XYZxyz(31.4431, 35.2928, 9.5699)
Luminance0.3529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA23D #3D4AAF
analogous
#AF693D #AFA23D #83AF3D
triadic
#AFA23D #3DAFA2 #A23DAF
tetradic
#AFA23D #3DAF69 #3D4AAF #AF3D83
square
#AFA23D #3DAF69 #3D4AAF #AF3D83
split-complementary
#AFA23D #3D83AF #693DAF
monochromatic
#544E1D #82782D #AFA23D #C8BC61 #D8CF8F

Accessibility & contrast

On white

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

On black

8.06
#AFA23D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA23D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA23D#FFFFFF#000000##000000
##AFA23D1.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa23d;
/* rgb */ color: rgb(175, 162, 61);
/* oklch */ color: oklch(70.4% 0.121 102.0);
Tailwind
colors: {
  custom: {
    50: '#cabd77',
    500: '#afa23d',
    950: '#000000',
  },
}
SCSS
$custom: #afa23d;
$custom-light: #cabd77;
$custom-dark: #000000;
JSON
{
  "hex": "#afa23d",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 61
  },
  "hsl": {
    "h": 53.158,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.70411,
    "c": 0.12145,
    "h": 102
  },
  "luminance": 0.35292
}

Semantic roles & 50–950 ramp

primary
#AFA23D
secondary
#858CC3
accent
#5FD850
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA23D

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

Preview Lab → · Contrast checker → · Palette generator →

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