#AFA93C#AFA93C

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

Color values

HEX#AFA93C
RGBrgb(175, 169, 60)
HSLhsl(57, 49%, 46%)
HSVhsv(57, 66%, 69%)
CMYKcmyk(0%, 3.4%, 65.7%, 31.4%)
CIE-LABlab(67.89, -11.28, 54.84)
CIE-LCHlch(67.89, 55.99, 101.62°)
OKLaboklab(71.93% -0.0359 0.1238)
OKLCHoklch(71.93% 0.129 106.2)
XYZxyz(32.6840, 37.8173, 9.8519)
Luminance0.3782 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA93C #3C42AF
analogous
#AF6F3C #AFA93C #7BAF3C
triadic
#AFA93C #3CAFA9 #A93CAF
tetradic
#AFA93C #3CAF6F #3C42AF #AF3C7B
square
#AFA93C #3CAF6F #3C42AF #AF3C7B
split-complementary
#AFA93C #3C7BAF #6F3CAF
monochromatic
#54511D #817D2C #AFA93C #C8C360 #D8D48D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA93C#FFFFFF#000000##000000
##AFA93C1.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)
#B7A32E
Deuteranopia (green-blind)
#BAA843
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa93c;
/* rgb */ color: rgb(175, 169, 60);
/* oklch */ color: oklch(71.9% 0.129 106.2);
Tailwind
colors: {
  custom: {
    50: '#cac277',
    500: '#afa93c',
    950: '#000000',
  },
}
SCSS
$custom: #afa93c;
$custom-light: #cac277;
$custom-dark: #000000;
JSON
{
  "hex": "#afa93c",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 60
  },
  "hsl": {
    "h": 56.87,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.71927,
    "c": 0.12888,
    "h": 106.2
  },
  "luminance": 0.37816
}

Semantic roles & 50–950 ramp

primary
#AFA93C
secondary
#8487C3
accent
#56D84F
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA93C

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

Preview Lab → · Contrast checker → · Palette generator →

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