#AF9820#AF9820

#AF9820 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.0% C 0.132 H 97.4°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#AF9820
RGBrgb(175, 152, 32)
HSLhsl(50, 69%, 41%)
HSVhsv(50, 82%, 69%)
CMYKcmyk(0%, 13.1%, 81.7%, 31.4%)
CIE-LABlab(63.07, -3.58, 60.47)
CIE-LCHlch(63.07, 60.57, 93.38°)
OKLaboklab(68.05% -0.0169 0.1305)
OKLCHoklch(68.05% 0.132 97.4)
XYZxyz(29.1697, 31.6763, 5.9439)
Luminance0.3167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9820 #2037AF
analogous
#AF5120 #AF9820 #7EAF20
triadic
#AF9820 #20AF98 #9820AF
tetradic
#AF9820 #20AF51 #2037AF #AF207E
square
#AF9820 #20AF51 #2037AF #AF207E
split-complementary
#AF9820 #207EAF #5120AF
monochromatic
#483E0D #7B6B17 #AF9820 #DABF33 #E3CF66

Accessibility & contrast

On white

2.86
#AF9820 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#AF9820 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9820
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9820#FFFFFF#000000##000000
##AF98201.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#AE9C29
Tritanopia (blue-blind)
#BD8C82
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9820;
/* rgb */ color: rgb(175, 152, 32);
/* oklch */ color: oklch(68.0% 0.132 97.4);
Tailwind
colors: {
  custom: {
    50: '#cbb567',
    500: '#af9820',
    950: '#000000',
  },
}
SCSS
$custom: #af9820;
$custom-light: #cbb567;
$custom-dark: #000000;
JSON
{
  "hex": "#af9820",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 32
  },
  "hsl": {
    "h": 50.35,
    "s": 69.082,
    "l": 40.588
  },
  "oklch": {
    "l": 0.6805,
    "c": 0.13157,
    "h": 97.4
  },
  "luminance": 0.31675
}

Semantic roles & 50–950 ramp

primary
#AF9820
secondary
#6273C8
accent
#58EC3C
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9820

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

Preview Lab → · Contrast checker → · Palette generator →

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