#AFA32F#AFA32F

#AFA32F is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.5% C 0.132 H 103.3°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#AFA32F
RGBrgb(175, 163, 47)
HSLhsl(54, 58%, 44%)
HSVhsv(54, 73%, 69%)
CMYKcmyk(0%, 6.9%, 73.1%, 31.4%)
CIE-LABlab(66.15, -8.84, 58.23)
CIE-LCHlch(66.15, 58.90, 98.63°)
OKLaboklab(70.52% -0.0304 0.1287)
OKLCHoklch(70.52% 0.132 103.3)
XYZxyz(31.2908, 35.5149, 7.8956)
Luminance0.3551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA32F #2F3BAF
analogous
#AF632F #AFA32F #7BAF2F
triadic
#AFA32F #2FAFA3 #A32FAF
tetradic
#AFA32F #2FAF63 #2F3BAF #AF2F7B
square
#AFA32F #2FAF63 #2F3BAF #AF2F7B
split-complementary
#AFA32F #2F7BAF #632FAF
monochromatic
#4F4915 #7F7622 #AFA32F #CFC34C #DCD37C

Accessibility & contrast

On white

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

On black

8.10
#AFA32F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA32F
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA32F#FFFFFF#000000##000000
##AFA32F1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E1A
Deuteranopia (green-blind)
#B6A337
Tritanopia (blue-blind)
#BC978C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa32f;
/* rgb */ color: rgb(175, 163, 47);
/* oklch */ color: oklch(70.5% 0.132 103.3);
Tailwind
colors: {
  custom: {
    50: '#cabd70',
    500: '#afa32f',
    950: '#000000',
  },
}
SCSS
$custom: #afa32f;
$custom-light: #cabd70;
$custom-dark: #000000;
JSON
{
  "hex": "#afa32f",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 47
  },
  "hsl": {
    "h": 54.375,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.70515,
    "c": 0.13221,
    "h": 103.3
  },
  "luminance": 0.35514
}

Semantic roles & 50–950 ramp

primary
#AFA32F
secondary
#757DC4
accent
#55E147
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA32F

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

Preview Lab → · Contrast checker → · Palette generator →

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