#AFA93B#AFA93B

#AFA93B 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#AFA93B
RGBrgb(175, 169, 59)
HSLhsl(57, 50%, 46%)
HSVhsv(57, 66%, 69%)
CMYKcmyk(0%, 3.4%, 66.3%, 31.4%)
CIE-LABlab(67.88, -11.34, 55.25)
CIE-LCHlch(67.88, 56.40, 101.60°)
OKLaboklab(71.92% -0.0362 0.1245)
OKLCHoklch(71.92% 0.13 106.2)
XYZxyz(32.6578, 37.8068, 9.7140)
Luminance0.3781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA93B #3B41AF
analogous
#AF6F3B #AFA93B #7BAF3B
triadic
#AFA93B #3BAFA9 #A93BAF
tetradic
#AFA93B #3BAF6F #3B41AF #AF3B7B
square
#AFA93B #3BAF6F #3B41AF #AF3B7B
split-complementary
#AFA93B #3B7BAF #6F3BAF
monochromatic
#53511C #817D2C #AFA93B #C9C35E #D8D48C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA93B#FFFFFF#000000##000000
##AFA93B1.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)
#B7A32C
Deuteranopia (green-blind)
#BAA742
Tritanopia (blue-blind)
#BC9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa93b;
/* rgb */ color: rgb(175, 169, 59);
/* oklch */ color: oklch(71.9% 0.130 106.2);
Tailwind
colors: {
  custom: {
    50: '#cac277',
    500: '#afa93b',
    950: '#000000',
  },
}
SCSS
$custom: #afa93b;
$custom-light: #cac277;
$custom-dark: #000000;
JSON
{
  "hex": "#afa93b",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 59
  },
  "hsl": {
    "h": 56.897,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71918,
    "c": 0.12963,
    "h": 106.2
  },
  "luminance": 0.37806
}

Semantic roles & 50–950 ramp

primary
#AFA93B
secondary
#8386C3
accent
#56D94F
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA93B

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

Preview Lab → · Contrast checker → · Palette generator →

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