#AFA43A#AFA43A

#AFA43A is a light, vivid yellow. Relative luminance 0.360; OKLCH L 70.8% C 0.126 H 103.4°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#AFA43A
RGBrgb(175, 164, 58)
HSLhsl(54, 50%, 46%)
HSVhsv(54, 67%, 69%)
CMYKcmyk(0%, 6.3%, 66.9%, 31.4%)
CIE-LABlab(66.50, -8.78, 54.24)
CIE-LCHlch(66.50, 54.95, 99.19°)
OKLaboklab(70.82% -0.029 0.1222)
OKLCHoklch(70.82% 0.126 103.4)
XYZxyz(31.7196, 35.9716, 9.2746)
Luminance0.3597 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA43A #3A45AF
analogous
#AF693A #AFA43A #7FAF3A
triadic
#AFA43A #3AAFA4 #A43AAF
tetradic
#AFA43A #3AAF69 #3A45AF #AF3A7F
square
#AFA43A #3AAF69 #3A45AF #AF3A7F
split-complementary
#AFA43A #3A7FAF #693AAF
monochromatic
#534E1C #81792B #AFA43A #C9BF5D #D9D18B

Accessibility & contrast

On white

2.56
#AFA43A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#AFA43A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA43A
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA43A#FFFFFF#000000##000000
##AFA43A1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F2C
Deuteranopia (green-blind)
#B6A440
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa43a;
/* rgb */ color: rgb(175, 164, 58);
/* oklch */ color: oklch(70.8% 0.126 103.4);
Tailwind
colors: {
  custom: {
    50: '#cabe76',
    500: '#afa43a',
    950: '#000000',
  },
}
SCSS
$custom: #afa43a;
$custom-light: #cabe76;
$custom-dark: #000000;
JSON
{
  "hex": "#afa43a",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 58
  },
  "hsl": {
    "h": 54.359,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.70818,
    "c": 0.12558,
    "h": 103.4
  },
  "luminance": 0.3597
}

Semantic roles & 50–950 ramp

primary
#AFA43A
secondary
#8288C3
accent
#5BDA4E
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA43A

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

Preview Lab → · Contrast checker → · Palette generator →

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