#AFA935#AFA935

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

Color values

HEX#AFA935
RGBrgb(175, 169, 53)
HSLhsl(57, 54%, 45%)
HSVhsv(57, 70%, 69%)
CMYKcmyk(0%, 3.4%, 69.7%, 31.4%)
CIE-LABlab(67.83, -11.68, 57.61)
CIE-LCHlch(67.83, 58.78, 101.46°)
OKLaboklab(71.87% -0.0378 0.1285)
OKLCHoklch(71.87% 0.134 106.4)
XYZxyz(32.5110, 37.7481, 8.9410)
Luminance0.3775 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA935 #353BAF
analogous
#AF6C35 #AFA935 #78AF35
triadic
#AFA935 #35AFA9 #A935AF
tetradic
#AFA935 #35AF6C #353BAF #AF3578
square
#AFA935 #35AF6C #353BAF #AF3578
split-complementary
#AFA935 #3578AF #6C35AF
monochromatic
#514E19 #807C27 #AFA935 #CCC656 #DAD685

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA935#FFFFFF#000000##000000
##AFA9351.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)
#B7A323
Deuteranopia (green-blind)
#BAA73D
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa935;
/* rgb */ color: rgb(175, 169, 53);
/* oklch */ color: oklch(71.9% 0.134 106.4);
Tailwind
colors: {
  custom: {
    50: '#cac274',
    500: '#afa935',
    950: '#000000',
  },
}
SCSS
$custom: #afa935;
$custom-light: #cac274;
$custom-dark: #000000;
JSON
{
  "hex": "#afa935",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 53
  },
  "hsl": {
    "h": 57.049,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.7187,
    "c": 0.13389,
    "h": 106.4
  },
  "luminance": 0.37747
}

Semantic roles & 50–950 ramp

primary
#AFA935
secondary
#7C80C4
accent
#52DD4B
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA935

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

Preview Lab → · Contrast checker → · Palette generator →

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