#AF8D23#AF8D23

#AF8D23 is a light, vivid yellow. Relative luminance 0.283; OKLCH L 65.7% C 0.123 H 89.7°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#AF8D23
RGBrgb(175, 141, 35)
HSLhsl(45, 67%, 41%)
HSVhsv(45, 80%, 69%)
CMYKcmyk(0%, 19.4%, 80%, 31.4%)
CIE-LABlab(60.15, 2.52, 56.91)
CIE-LCHlch(60.15, 56.96, 87.47°)
OKLaboklab(65.74% 0.0006 0.1234)
OKLCHoklch(65.74% 0.123 89.7)
XYZxyz(27.5091, 28.2869, 5.6008)
Luminance0.2828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8D23 #2345AF
analogous
#AF4723 #AF8D23 #8BAF23
triadic
#AF8D23 #23AF8D #8D23AF
tetradic
#AF8D23 #23AF47 #2345AF #AF238B
square
#AF8D23 #23AF47 #2345AF #AF238B
split-complementary
#AF8D23 #238BAF #4723AF
monochromatic
#493B0F #7C6419 #AF8D23 #D7B138 #E1C56B

Accessibility & contrast

On white

3.15
#AF8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#AF8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8D23
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8D23#FFFFFF#000000##000000
##AF8D231.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B0B
Deuteranopia (green-blind)
#A69529
Tritanopia (blue-blind)
#BE8079
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af8d23;
/* rgb */ color: rgb(175, 141, 35);
/* oklch */ color: oklch(65.7% 0.123 89.7);
Tailwind
colors: {
  custom: {
    50: '#cbae67',
    500: '#af8d23',
    950: '#000000',
  },
}
SCSS
$custom: #af8d23;
$custom-light: #cbae67;
$custom-dark: #000000;
JSON
{
  "hex": "#af8d23",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 45.429,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.65742,
    "c": 0.12342,
    "h": 89.7
  },
  "luminance": 0.28285
}

Semantic roles & 50–950 ramp

primary
#AF8D23
secondary
#667EC7
accent
#68EA3E
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #AF8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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