#AFA335#AFA335

#AFA335 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.11:1 contrast (WCAG AA passes).

Color values

HEX#AFA335
RGBrgb(175, 163, 53)
HSLhsl(54, 54%, 45%)
HSVhsv(54, 70%, 69%)
CMYKcmyk(0%, 6.9%, 69.7%, 31.4%)
CIE-LABlab(66.19, -8.53, 55.97)
CIE-LCHlch(66.19, 56.61, 98.67°)
OKLaboklab(70.56% -0.0289 0.125)
OKLCHoklch(70.56% 0.128 103)
XYZxyz(31.4203, 35.5667, 8.5775)
Luminance0.3557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA335 #3541AF
analogous
#AF6635 #AFA335 #7EAF35
triadic
#AFA335 #35AFA3 #A335AF
tetradic
#AFA335 #35AF66 #3541AF #AF357E
square
#AFA335 #35AF66 #3541AF #AF357E
split-complementary
#AFA335 #357EAF #6635AF
monochromatic
#514B19 #807727 #AFA335 #CCC056 #DAD185

Accessibility & contrast

On white

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

On black

8.11
#AFA335 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA335
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA335#FFFFFF#000000##000000
##AFA3351.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa335;
/* rgb */ color: rgb(175, 163, 53);
/* oklch */ color: oklch(70.6% 0.128 103.0);
Tailwind
colors: {
  custom: {
    50: '#cabd73',
    500: '#afa335',
    950: '#000000',
  },
}
SCSS
$custom: #afa335;
$custom-light: #cabd73;
$custom-dark: #000000;
JSON
{
  "hex": "#afa335",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 53
  },
  "hsl": {
    "h": 54.098,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.70559,
    "c": 0.12828,
    "h": 103
  },
  "luminance": 0.35565
}

Semantic roles & 50–950 ramp

primary
#AFA335
secondary
#7C83C4
accent
#59DD4B
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA335

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

Preview Lab → · Contrast checker → · Palette generator →

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