#AFA434#AFA434

#AFA434 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.8% C 0.130 H 103.6°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#AFA434
RGBrgb(175, 164, 52)
HSLhsl(55, 54%, 45%)
HSVhsv(55, 70%, 69%)
CMYKcmyk(0%, 6.3%, 70.3%, 31.4%)
CIE-LABlab(66.45, -9.11, 56.63)
CIE-LCHlch(66.45, 57.36, 99.14°)
OKLaboklab(70.77% -0.0306 0.1262)
OKLCHoklch(70.77% 0.13 103.6)
XYZxyz(31.5758, 35.9141, 8.5170)
Luminance0.3591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA434 #343FAF
analogous
#AF6734 #AFA434 #7DAF34
triadic
#AFA434 #34AFA4 #A434AF
tetradic
#AFA434 #34AF67 #343FAF #AF347D
square
#AFA434 #34AF67 #343FAF #AF347D
split-complementary
#AFA434 #347DAF #6734AF
monochromatic
#514C18 #807826 #AFA434 #CCC154 #DAD283

Accessibility & contrast

On white

2.57
#AFA434 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#AFA434 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA434
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA434#FFFFFF#000000##000000
##AFA4341.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F23
Deuteranopia (green-blind)
#B6A43B
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa434;
/* rgb */ color: rgb(175, 164, 52);
/* oklch */ color: oklch(70.8% 0.130 103.6);
Tailwind
colors: {
  custom: {
    50: '#cabe73',
    500: '#afa434',
    950: '#000000',
  },
}
SCSS
$custom: #afa434;
$custom-light: #cabe73;
$custom-dark: #000000;
JSON
{
  "hex": "#afa434",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 52
  },
  "hsl": {
    "h": 54.634,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70769,
    "c": 0.12987,
    "h": 103.6
  },
  "luminance": 0.35913
}

Semantic roles & 50–950 ramp

primary
#AFA434
secondary
#7B82C4
accent
#57DE4A
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA434

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

Preview Lab → · Contrast checker → · Palette generator →

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