#AFA52C#AFA52C

#AFA52C is a light, vivid yellow. Relative luminance 0.362; OKLCH L 70.9% C 0.136 H 104.5°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#AFA52C
RGBrgb(175, 165, 44)
HSLhsl(55, 60%, 43%)
HSVhsv(55, 75%, 69%)
CMYKcmyk(0%, 5.7%, 74.9%, 31.4%)
CIE-LABlab(66.68, -10.03, 59.82)
CIE-LCHlch(66.68, 60.65, 99.52°)
OKLaboklab(70.93% -0.034 0.1315)
OKLCHoklch(70.93% 0.136 104.5)
XYZxyz(31.5903, 36.2073, 7.7071)
Luminance0.3621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA52C #2C36AF
analogous
#AF632C #AFA52C #77AF2C
triadic
#AFA52C #2CAFA5 #A52CAF
tetradic
#AFA52C #2CAF63 #2C36AF #AF2C77
square
#AFA52C #2CAF63 #2C36AF #AF2C77
split-complementary
#AFA52C #2C77AF #632CAF
monochromatic
#4D4913 #7E7720 #AFA52C #D1C647 #DDD578

Accessibility & contrast

On white

2.55
#AFA52C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#AFA52C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA52C
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA52C#FFFFFF#000000##000000
##AFA52C1.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa52c;
/* rgb */ color: rgb(175, 165, 44);
/* oklch */ color: oklch(70.9% 0.136 104.5);
Tailwind
colors: {
  custom: {
    50: '#cbbf6e',
    500: '#afa52c',
    950: '#000000',
  },
}
SCSS
$custom: #afa52c;
$custom-light: #cbbf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa52c",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 44
  },
  "hsl": {
    "h": 55.42,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.70931,
    "c": 0.1358,
    "h": 104.5
  },
  "luminance": 0.36206
}

Semantic roles & 50–950 ramp

primary
#AFA52C
secondary
#7278C5
accent
#51E345
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA52C

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

Preview Lab → · Contrast checker → · Palette generator →

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