#AFA43B#AFA43B

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

Color values

HEX#AFA43B
RGBrgb(175, 164, 59)
HSLhsl(54, 50%, 46%)
HSVhsv(54, 66%, 69%)
CMYKcmyk(0%, 6.3%, 66.3%, 31.4%)
CIE-LABlab(66.51, -8.72, 53.83)
CIE-LCHlch(66.51, 54.53, 99.20°)
OKLaboklab(70.83% -0.0287 0.1215)
OKLCHoklch(70.83% 0.125 103.3)
XYZxyz(31.7453, 35.9819, 9.4098)
Luminance0.3598 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA43B #3B46AF
analogous
#AF6A3B #AFA43B #80AF3B
triadic
#AFA43B #3BAFA4 #A43BAF
tetradic
#AFA43B #3BAF6A #3B46AF #AF3B80
square
#AFA43B #3BAF6A #3B46AF #AF3B80
split-complementary
#AFA43B #3B80AF #6A3BAF
monochromatic
#534E1C #81792C #AFA43B #C9BF5E #D8D18C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA43B#FFFFFF#000000##000000
##AFA43B1.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)
#B29F2D
Deuteranopia (green-blind)
#B6A441
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa43b;
/* rgb */ color: rgb(175, 164, 59);
/* oklch */ color: oklch(70.8% 0.125 103.3);
Tailwind
colors: {
  custom: {
    50: '#cabe76',
    500: '#afa43b',
    950: '#000000',
  },
}
SCSS
$custom: #afa43b;
$custom-light: #cabe76;
$custom-dark: #000000;
JSON
{
  "hex": "#afa43b",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 59
  },
  "hsl": {
    "h": 54.31,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70827,
    "c": 0.12484,
    "h": 103.3
  },
  "luminance": 0.35981
}

Semantic roles & 50–950 ramp

primary
#AFA43B
secondary
#8389C3
accent
#5CD94F
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA43B

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

Preview Lab → · Contrast checker → · Palette generator →

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