#AFA835#AFA835

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

Color values

HEX#AFA835
RGBrgb(175, 168, 53)
HSLhsl(57, 54%, 45%)
HSVhsv(57, 70%, 69%)
CMYKcmyk(0%, 4%, 69.7%, 31.4%)
CIE-LABlab(67.56, -11.16, 57.34)
CIE-LCHlch(67.56, 58.41, 101.01°)
OKLaboklab(71.65% -0.0363 0.1279)
OKLCHoklch(71.65% 0.133 105.8)
XYZxyz(32.3257, 37.3774, 8.8793)
Luminance0.3738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA835 #353CAF
analogous
#AF6B35 #AFA835 #79AF35
triadic
#AFA835 #35AFA8 #A835AF
tetradic
#AFA835 #35AF6B #353CAF #AF3579
square
#AFA835 #35AF6B #353CAF #AF3579
split-complementary
#AFA835 #3579AF #6B35AF
monochromatic
#514E19 #807B27 #AFA835 #CCC556 #DAD585

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA835#FFFFFF#000000##000000
##AFA8351.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)
#B6A223
Deuteranopia (green-blind)
#B9A73D
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa835;
/* rgb */ color: rgb(175, 168, 53);
/* oklch */ color: oklch(71.7% 0.133 105.8);
Tailwind
colors: {
  custom: {
    50: '#cac173',
    500: '#afa835',
    950: '#000000',
  },
}
SCSS
$custom: #afa835;
$custom-light: #cac173;
$custom-dark: #000000;
JSON
{
  "hex": "#afa835",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 53
  },
  "hsl": {
    "h": 56.557,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71651,
    "c": 0.13292,
    "h": 105.8
  },
  "luminance": 0.37376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA835

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

Preview Lab → · Contrast checker → · Palette generator →

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