#AFA93A#AFA93A

#AFA93A is a light, vivid yellow. Relative luminance 0.378; OKLCH L 71.9% C 0.130 H 106.2°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#AFA93A
RGBrgb(175, 169, 58)
HSLhsl(57, 50%, 46%)
HSVhsv(57, 67%, 69%)
CMYKcmyk(0%, 3.4%, 66.9%, 31.4%)
CIE-LABlab(67.87, -11.40, 55.65)
CIE-LCHlch(67.87, 56.81, 101.58°)
OKLaboklab(71.91% -0.0365 0.1252)
OKLCHoklch(71.91% 0.13 106.2)
XYZxyz(32.6321, 37.7965, 9.5787)
Luminance0.3780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA93A #3A40AF
analogous
#AF6E3A #AFA93A #7AAF3A
triadic
#AFA93A #3AAFA9 #A93AAF
tetradic
#AFA93A #3AAF6E #3A40AF #AF3A7A
square
#AFA93A #3AAF6E #3A40AF #AF3A7A
split-complementary
#AFA93A #3A7AAF #6E3AAF
monochromatic
#53501C #817D2B #AFA93A #C9C45D #D9D58B

Accessibility & contrast

On white

2.45
#AFA93A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#AFA93A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA93A
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA93A#FFFFFF#000000##000000
##AFA93A1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A32B
Deuteranopia (green-blind)
#BAA741
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa93a;
/* rgb */ color: rgb(175, 169, 58);
/* oklch */ color: oklch(71.9% 0.130 106.2);
Tailwind
colors: {
  custom: {
    50: '#cac276',
    500: '#afa93a',
    950: '#000000',
  },
}
SCSS
$custom: #afa93a;
$custom-light: #cac276;
$custom-dark: #000000;
JSON
{
  "hex": "#afa93a",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 58
  },
  "hsl": {
    "h": 56.923,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.7191,
    "c": 0.13037,
    "h": 106.2
  },
  "luminance": 0.37795
}

Semantic roles & 50–950 ramp

primary
#AFA93A
secondary
#8285C3
accent
#55DA4E
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA93A

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

Preview Lab → · Contrast checker → · Palette generator →

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