#AFA43D#AFA43D

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

Color values

HEX#AFA43D
RGBrgb(175, 164, 61)
HSLhsl(54, 48%, 46%)
HSVhsv(54, 65%, 69%)
CMYKcmyk(0%, 6.3%, 65.1%, 31.4%)
CIE-LABlab(66.52, -8.60, 52.99)
CIE-LCHlch(66.52, 53.68, 99.21°)
OKLaboklab(70.85% -0.0282 0.12)
OKLCHoklch(70.85% 0.123 103.2)
XYZxyz(31.7982, 36.0030, 9.6883)
Luminance0.3600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA43D #3D48AF
analogous
#AF6B3D #AFA43D #81AF3D
triadic
#AFA43D #3DAFA4 #A43DAF
tetradic
#AFA43D #3DAF6B #3D48AF #AF3D81
square
#AFA43D #3DAF6B #3D48AF #AF3D81
split-complementary
#AFA43D #3D81AF #6B3DAF
monochromatic
#544F1D #82792D #AFA43D #C8BE61 #D8D18F

Accessibility & contrast

On white

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

On black

8.20
#AFA43D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA43D
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA43D#FFFFFF#000000##000000
##AFA43D1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F30
Deuteranopia (green-blind)
#B6A443
Tritanopia (blue-blind)
#BC998F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa43d;
/* rgb */ color: rgb(175, 164, 61);
/* oklch */ color: oklch(70.8% 0.123 103.2);
Tailwind
colors: {
  custom: {
    50: '#cabe78',
    500: '#afa43d',
    950: '#000000',
  },
}
SCSS
$custom: #afa43d;
$custom-light: #cabe78;
$custom-dark: #000000;
JSON
{
  "hex": "#afa43d",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 61
  },
  "hsl": {
    "h": 54.211,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.70845,
    "c": 0.12329,
    "h": 103.2
  },
  "luminance": 0.36002
}

Semantic roles & 50–950 ramp

primary
#AFA43D
secondary
#858BC3
accent
#5DD850
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA43D

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

Preview Lab → · Contrast checker → · Palette generator →

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