#AFA342#AFA342

#AFA342 is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.7% C 0.118 H 102.3°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#AFA342
RGBrgb(175, 163, 66)
HSLhsl(53, 45%, 47%)
HSVhsv(53, 62%, 69%)
CMYKcmyk(0%, 6.9%, 62.3%, 31.4%)
CIE-LABlab(66.29, -7.74, 50.54)
CIE-LCHlch(66.29, 51.13, 98.71°)
OKLaboklab(70.68% -0.0252 0.1156)
OKLCHoklch(70.68% 0.118 102.3)
XYZxyz(31.7610, 35.7029, 10.3715)
Luminance0.3570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA342 #424EAF
analogous
#AF6C42 #AFA342 #85AF42
triadic
#AFA342 #42AFA3 #A342AF
tetradic
#AFA342 #42AF6C #424EAF #AF4285
square
#AFA342 #42AF6C #424EAF #AF4285
split-complementary
#AFA342 #4285AF #6C42AF
monochromatic
#565020 #837A31 #AFA342 #C6BC68 #D7D095

Accessibility & contrast

On white

2.58
#AFA342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#AFA342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA342
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA342#FFFFFF#000000##000000
##AFA3421.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E37
Deuteranopia (green-blind)
#B5A447
Tritanopia (blue-blind)
#BC988E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa342;
/* rgb */ color: rgb(175, 163, 66);
/* oklch */ color: oklch(70.7% 0.118 102.3);
Tailwind
colors: {
  custom: {
    50: '#cabe7b',
    500: '#afa342',
    950: '#000000',
  },
}
SCSS
$custom: #afa342;
$custom-light: #cabe7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa342",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 66
  },
  "hsl": {
    "h": 53.394,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.70676,
    "c": 0.1183,
    "h": 102.3
  },
  "luminance": 0.35702
}

Semantic roles & 50–950 ramp

primary
#AFA342
secondary
#8A91C2
accent
#61D553
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA342

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

Preview Lab → · Contrast checker → · Palette generator →

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