#AFA33D#AFA33D

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

Color values

HEX#AFA33D
RGBrgb(175, 163, 61)
HSLhsl(54, 48%, 46%)
HSVhsv(54, 65%, 69%)
CMYKcmyk(0%, 6.9%, 65.1%, 31.4%)
CIE-LABlab(66.25, -8.07, 52.70)
CIE-LCHlch(66.25, 53.32, 98.70°)
OKLaboklab(70.63% -0.0267 0.1194)
OKLCHoklch(70.63% 0.122 102.6)
XYZxyz(31.6199, 35.6465, 9.6289)
Luminance0.3564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA33D #3D49AF
analogous
#AF6A3D #AFA33D #82AF3D
triadic
#AFA33D #3DAFA3 #A33DAF
tetradic
#AFA33D #3DAF6A #3D49AF #AF3D82
square
#AFA33D #3DAF6A #3D49AF #AF3D82
split-complementary
#AFA33D #3D82AF #6A3DAF
monochromatic
#544E1D #82792D #AFA33D #C8BD61 #D8D08F

Accessibility & contrast

On white

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

On black

8.13
#AFA33D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA33D
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA33D#FFFFFF#000000##000000
##AFA33D1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa33d;
/* rgb */ color: rgb(175, 163, 61);
/* oklch */ color: oklch(70.6% 0.122 102.6);
Tailwind
colors: {
  custom: {
    50: '#cabe78',
    500: '#afa33d',
    950: '#000000',
  },
}
SCSS
$custom: #afa33d;
$custom-light: #cabe78;
$custom-dark: #000000;
JSON
{
  "hex": "#afa33d",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 61
  },
  "hsl": {
    "h": 53.684,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.70628,
    "c": 0.12236,
    "h": 102.6
  },
  "luminance": 0.35645
}

Semantic roles & 50–950 ramp

primary
#AFA33D
secondary
#858CC3
accent
#5ED850
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA33D

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

Preview Lab → · Contrast checker → · Palette generator →

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