#AFA936#AFA936

#AFA936 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 71.9% C 0.133 H 106.4°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA936
RGBrgb(175, 169, 54)
HSLhsl(57, 53%, 45%)
HSVhsv(57, 69%, 69%)
CMYKcmyk(0%, 3.4%, 69.1%, 31.4%)
CIE-LABlab(67.84, -11.62, 57.23)
CIE-LCHlch(67.84, 58.40, 101.48°)
OKLaboklab(71.88% -0.0375 0.1278)
OKLCHoklch(71.88% 0.133 106.4)
XYZxyz(32.5343, 37.7574, 9.0635)
Luminance0.3776 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA936 #363CAF
analogous
#AF6D36 #AFA936 #78AF36
triadic
#AFA936 #36AFA9 #A936AF
tetradic
#AFA936 #36AF6D #363CAF #AF3678
square
#AFA936 #36AF6D #363CAF #AF3678
split-complementary
#AFA936 #3678AF #6D36AF
monochromatic
#514F19 #807C28 #AFA936 #CBC557 #DAD586

Accessibility & contrast

On white

2.46
#AFA936 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AFA936 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA936
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA936#FFFFFF#000000##000000
##AFA9361.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A324
Deuteranopia (green-blind)
#BAA73E
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa936;
/* rgb */ color: rgb(175, 169, 54);
/* oklch */ color: oklch(71.9% 0.133 106.4);
Tailwind
colors: {
  custom: {
    50: '#cac274',
    500: '#afa936',
    950: '#000000',
  },
}
SCSS
$custom: #afa936;
$custom-light: #cac274;
$custom-dark: #000000;
JSON
{
  "hex": "#afa936",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 54
  },
  "hsl": {
    "h": 57.025,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.71878,
    "c": 0.1332,
    "h": 106.4
  },
  "luminance": 0.37756
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA936

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

Preview Lab → · Contrast checker → · Palette generator →

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