#AFA33E#AFA33E

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

Color values

HEX#AFA33E
RGBrgb(175, 163, 62)
HSLhsl(54, 48%, 46%)
HSVhsv(54, 65%, 69%)
CMYKcmyk(0%, 6.9%, 64.6%, 31.4%)
CIE-LABlab(66.26, -8.01, 52.28)
CIE-LCHlch(66.26, 52.89, 98.71°)
OKLaboklab(70.64% -0.0264 0.1187)
OKLCHoklch(70.64% 0.122 102.5)
XYZxyz(31.6471, 35.6574, 9.7721)
Luminance0.3566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA33E #3E4AAF
analogous
#AF6B3E #AFA33E #83AF3E
triadic
#AFA33E #3EAFA3 #A33EAF
tetradic
#AFA33E #3EAF6B #3E4AAF #AF3E83
square
#AFA33E #3EAF6B #3E4AAF #AF3E83
split-complementary
#AFA33E #3E83AF #6B3EAF
monochromatic
#554F1E #82792E #AFA33E #C8BD63 #D8D090

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA33E#FFFFFF#000000##000000
##AFA33E1.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)
#B19E32
Deuteranopia (green-blind)
#B5A344
Tritanopia (blue-blind)
#BC988E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa33e;
/* rgb */ color: rgb(175, 163, 62);
/* oklch */ color: oklch(70.6% 0.122 102.5);
Tailwind
colors: {
  custom: {
    50: '#cabe78',
    500: '#afa33e',
    950: '#000000',
  },
}
SCSS
$custom: #afa33e;
$custom-light: #cabe78;
$custom-dark: #000000;
JSON
{
  "hex": "#afa33e",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 62
  },
  "hsl": {
    "h": 53.628,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.70637,
    "c": 0.12158,
    "h": 102.5
  },
  "luminance": 0.35656
}

Semantic roles & 50–950 ramp

primary
#AFA33E
secondary
#868DC3
accent
#5FD751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA33E

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

Preview Lab → · Contrast checker → · Palette generator →

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