#AFA52E#AFA52E

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

Color values

HEX#AFA52E
RGBrgb(175, 165, 46)
HSLhsl(55, 58%, 43%)
HSVhsv(55, 74%, 69%)
CMYKcmyk(0%, 5.7%, 73.7%, 31.4%)
CIE-LABlab(66.69, -9.94, 59.12)
CIE-LCHlch(66.69, 59.95, 99.54°)
OKLaboklab(70.94% -0.0336 0.1304)
OKLCHoklch(70.94% 0.135 104.4)
XYZxyz(31.6288, 36.2227, 7.9099)
Luminance0.3622 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA52E #2E38AF
analogous
#AF642E #AFA52E #78AF2E
triadic
#AFA52E #2EAFA5 #A52EAF
tetradic
#AFA52E #2EAF64 #2E38AF #AF2E78
square
#AFA52E #2EAF64 #2E38AF #AF2E78
split-complementary
#AFA52E #2E78AF #642EAF
monochromatic
#4E4A15 #7F7721 #AFA52E #D0C54B #DCD57B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA52E#FFFFFF#000000##000000
##AFA52E1.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)
#B49F18
Deuteranopia (green-blind)
#B7A537
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa52e;
/* rgb */ color: rgb(175, 165, 46);
/* oklch */ color: oklch(70.9% 0.135 104.4);
Tailwind
colors: {
  custom: {
    50: '#cabf6f',
    500: '#afa52e',
    950: '#000000',
  },
}
SCSS
$custom: #afa52e;
$custom-light: #cabf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa52e",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 46
  },
  "hsl": {
    "h": 55.349,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.70944,
    "c": 0.13461,
    "h": 104.4
  },
  "luminance": 0.36221
}

Semantic roles & 50–950 ramp

primary
#AFA52E
secondary
#747AC5
accent
#52E246
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA52E

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

Preview Lab → · Contrast checker → · Palette generator →

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