#AFA334#AFA334

#AFA334 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.129 H 103.1°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#AFA334
RGBrgb(175, 163, 52)
HSLhsl(54, 54%, 45%)
HSVhsv(54, 70%, 69%)
CMYKcmyk(0%, 6.9%, 70.3%, 31.4%)
CIE-LABlab(66.18, -8.59, 56.36)
CIE-LCHlch(66.18, 57.01, 98.66°)
OKLaboklab(70.55% -0.0291 0.1256)
OKLCHoklch(70.55% 0.129 103.1)
XYZxyz(31.3976, 35.5576, 8.4576)
Luminance0.3556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA334 #3440AF
analogous
#AF6534 #AFA334 #7EAF34
triadic
#AFA334 #34AFA3 #A334AF
tetradic
#AFA334 #34AF65 #3440AF #AF347E
square
#AFA334 #34AF65 #3440AF #AF347E
split-complementary
#AFA334 #347EAF #6534AF
monochromatic
#514B18 #807726 #AFA334 #CCC054 #DAD283

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA334#FFFFFF#000000##000000
##AFA3341.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)
#B29E23
Deuteranopia (green-blind)
#B5A33B
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa334;
/* rgb */ color: rgb(175, 163, 52);
/* oklch */ color: oklch(70.6% 0.129 103.1);
Tailwind
colors: {
  custom: {
    50: '#cabd72',
    500: '#afa334',
    950: '#000000',
  },
}
SCSS
$custom: #afa334;
$custom-light: #cabd72;
$custom-dark: #000000;
JSON
{
  "hex": "#afa334",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 52
  },
  "hsl": {
    "h": 54.146,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70551,
    "c": 0.12896,
    "h": 103.1
  },
  "luminance": 0.35556
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA334

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

Preview Lab → · Contrast checker → · Palette generator →

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