#AFA336#AFA336

#AFA336 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.128 H 103.0°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA336
RGBrgb(175, 163, 54)
HSLhsl(54, 53%, 45%)
HSVhsv(54, 69%, 69%)
CMYKcmyk(0%, 6.9%, 69.1%, 31.4%)
CIE-LABlab(66.19, -8.48, 55.57)
CIE-LCHlch(66.19, 56.22, 98.68°)
OKLaboklab(70.57% -0.0286 0.1243)
OKLCHoklch(70.57% 0.128 103)
XYZxyz(31.4436, 35.5760, 8.6999)
Luminance0.3558 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA336 #3642AF
analogous
#AF6736 #AFA336 #7EAF36
triadic
#AFA336 #36AFA3 #A336AF
tetradic
#AFA336 #36AF67 #3642AF #AF367E
square
#AFA336 #36AF67 #3642AF #AF367E
split-complementary
#AFA336 #367EAF #6736AF
monochromatic
#514C19 #807728 #AFA336 #CBC057 #DAD186

Accessibility & contrast

On white

2.59
#AFA336 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#AFA336 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA336
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA336#FFFFFF#000000##000000
##AFA3361.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E26
Deuteranopia (green-blind)
#B5A33D
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa336;
/* rgb */ color: rgb(175, 163, 54);
/* oklch */ color: oklch(70.6% 0.128 103.0);
Tailwind
colors: {
  custom: {
    50: '#cabd74',
    500: '#afa336',
    950: '#000000',
  },
}
SCSS
$custom: #afa336;
$custom-light: #cabd74;
$custom-dark: #000000;
JSON
{
  "hex": "#afa336",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 54
  },
  "hsl": {
    "h": 54.05,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.70567,
    "c": 0.12757,
    "h": 103
  },
  "luminance": 0.35575
}

Semantic roles & 50–950 ramp

primary
#AFA336
secondary
#7D84C3
accent
#5ADC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA336

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

Preview Lab → · Contrast checker → · Palette generator →

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