#AFA836#AFA836

#AFA836 is a light, vivid yellow. Relative luminance 0.374; OKLCH L 71.7% C 0.132 H 105.8°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#AFA836
RGBrgb(175, 168, 54)
HSLhsl(57, 53%, 45%)
HSVhsv(57, 69%, 69%)
CMYKcmyk(0%, 4%, 69.1%, 31.4%)
CIE-LABlab(67.57, -11.10, 56.95)
CIE-LCHlch(67.57, 58.03, 101.03°)
OKLaboklab(71.66% -0.036 0.1272)
OKLCHoklch(71.66% 0.132 105.8)
XYZxyz(32.3489, 37.3867, 9.0017)
Luminance0.3739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA836 #363DAF
analogous
#AF6C36 #AFA836 #79AF36
triadic
#AFA836 #36AFA8 #A836AF
tetradic
#AFA836 #36AF6C #363DAF #AF3679
square
#AFA836 #36AF6C #363DAF #AF3679
split-complementary
#AFA836 #3679AF #6C36AF
monochromatic
#514E19 #807B28 #AFA836 #CBC457 #DAD586

Accessibility & contrast

On white

2.48
#AFA836 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#AFA836 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA836
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA836#FFFFFF#000000##000000
##AFA8361.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A225
Deuteranopia (green-blind)
#B9A73E
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa836;
/* rgb */ color: rgb(175, 168, 54);
/* oklch */ color: oklch(71.7% 0.132 105.8);
Tailwind
colors: {
  custom: {
    50: '#cac174',
    500: '#afa836',
    950: '#000000',
  },
}
SCSS
$custom: #afa836;
$custom-light: #cac174;
$custom-dark: #000000;
JSON
{
  "hex": "#afa836",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 54
  },
  "hsl": {
    "h": 56.529,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.71658,
    "c": 0.13224,
    "h": 105.8
  },
  "luminance": 0.37386
}

Semantic roles & 50–950 ramp

primary
#AFA836
secondary
#7D81C3
accent
#54DC4C
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA836

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

Preview Lab → · Contrast checker → · Palette generator →

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