#AFA93D#AFA93D

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

Color values

HEX#AFA93D
RGBrgb(175, 169, 61)
HSLhsl(57, 48%, 46%)
HSVhsv(57, 65%, 69%)
CMYKcmyk(0%, 3.4%, 65.1%, 31.4%)
CIE-LABlab(67.89, -11.22, 54.43)
CIE-LCHlch(67.89, 55.58, 101.65°)
OKLaboklab(71.94% -0.0356 0.1231)
OKLCHoklch(71.94% 0.128 106.1)
XYZxyz(32.7106, 37.8279, 9.9924)
Luminance0.3783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA93D #3D43AF
analogous
#AF703D #AFA93D #7CAF3D
triadic
#AFA93D #3DAFA9 #A93DAF
tetradic
#AFA93D #3DAF70 #3D43AF #AF3D7C
square
#AFA93D #3DAF70 #3D43AF #AF3D7C
split-complementary
#AFA93D #3D7CAF #703DAF
monochromatic
#54511D #827D2D #AFA93D #C8C361 #D8D48F

Accessibility & contrast

On white

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

On black

8.57
#AFA93D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA93D
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA93D#FFFFFF#000000##000000
##AFA93D1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A32F
Deuteranopia (green-blind)
#BAA844
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa93d;
/* rgb */ color: rgb(175, 169, 61);
/* oklch */ color: oklch(71.9% 0.128 106.1);
Tailwind
colors: {
  custom: {
    50: '#cac278',
    500: '#afa93d',
    950: '#000000',
  },
}
SCSS
$custom: #afa93d;
$custom-light: #cac278;
$custom-dark: #000000;
JSON
{
  "hex": "#afa93d",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 61
  },
  "hsl": {
    "h": 56.842,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.71936,
    "c": 0.12812,
    "h": 106.1
  },
  "luminance": 0.37827
}

Semantic roles & 50–950 ramp

primary
#AFA93D
secondary
#8588C3
accent
#57D850
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA93D

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

Preview Lab → · Contrast checker → · Palette generator →

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