#AFA451#AFA451

#AFA451 is a light, moderate yellow. Relative luminance 0.363; OKLCH L 71.1% C 0.106 H 101.8°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#AFA451
RGBrgb(175, 164, 81)
HSLhsl(53, 37%, 50%)
HSVhsv(53, 54%, 69%)
CMYKcmyk(0%, 6.3%, 53.7%, 31.4%)
CIE-LABlab(66.72, -7.12, 43.95)
CIE-LCHlch(66.72, 44.52, 99.20°)
OKLaboklab(71.06% -0.0216 0.1033)
OKLCHoklch(71.06% 0.106 101.8)
XYZxyz(32.4409, 36.2601, 13.0730)
Luminance0.3626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA451 #515CAF
analogous
#AF7551 #AFA451 #8BAF51
triadic
#AFA451 #51AFA4 #A451AF
tetradic
#AFA451 #51AF75 #515CAF #AF518B
square
#AFA451 #51AF75 #515CAF #AF518B
split-complementary
#AFA451 #518BAF #7551AF
monochromatic
#5C562A #857D3D #AFA451 #C2BA7B #D6D0A5

Accessibility & contrast

On white

2.54
#AFA451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#AFA451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA451
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA451#FFFFFF#000000##000000
##AFA4511.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A049
Deuteranopia (green-blind)
#B4A455
Tritanopia (blue-blind)
#BB9A91
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa451;
/* rgb */ color: rgb(175, 164, 81);
/* oklch */ color: oklch(71.1% 0.106 101.8);
Tailwind
colors: {
  custom: {
    50: '#c9be84',
    500: '#afa451',
    950: '#000000',
  },
}
SCSS
$custom: #afa451;
$custom-light: #c9be84;
$custom-dark: #000000;
JSON
{
  "hex": "#afa451",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 81
  },
  "hsl": {
    "h": 52.979,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.71063,
    "c": 0.10553,
    "h": 101.8
  },
  "luminance": 0.36259
}

Semantic roles & 50–950 ramp

primary
#AFA451
secondary
#999EC3
accent
#68CD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA451

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

Preview Lab → · Contrast checker → · Palette generator →

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