#AFA33F#AFA33F

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

Color values

HEX#AFA33F
RGBrgb(175, 163, 63)
HSLhsl(54, 47%, 47%)
HSVhsv(54, 64%, 69%)
CMYKcmyk(0%, 6.9%, 64%, 31.4%)
CIE-LABlab(66.27, -7.94, 51.85)
CIE-LCHlch(66.27, 52.45, 98.71°)
OKLaboklab(70.65% -0.0261 0.1179)
OKLCHoklch(70.65% 0.121 102.5)
XYZxyz(31.6748, 35.6685, 9.9179)
Luminance0.3567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA33F #3F4BAF
analogous
#AF6B3F #AFA33F #83AF3F
triadic
#AFA33F #3FAFA3 #A33FAF
tetradic
#AFA33F #3FAF6B #3F4BAF #AF3F83
square
#AFA33F #3FAF6B #3F4BAF #AF3F83
split-complementary
#AFA33F #3F83AF #6B3FAF
monochromatic
#554F1F #82792F #AFA33F #C7BD64 #D7D091

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA33F#FFFFFF#000000##000000
##AFA33F1.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)
#B19E33
Deuteranopia (green-blind)
#B5A345
Tritanopia (blue-blind)
#BC988E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa33f;
/* rgb */ color: rgb(175, 163, 63);
/* oklch */ color: oklch(70.6% 0.121 102.5);
Tailwind
colors: {
  custom: {
    50: '#cabe79',
    500: '#afa33f',
    950: '#000000',
  },
}
SCSS
$custom: #afa33f;
$custom-light: #cabe79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa33f",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 63
  },
  "hsl": {
    "h": 53.571,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.70646,
    "c": 0.12077,
    "h": 102.5
  },
  "luminance": 0.35667
}

Semantic roles & 50–950 ramp

primary
#AFA33F
secondary
#878EC3
accent
#5FD751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA33F

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

Preview Lab → · Contrast checker → · Palette generator →

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