#AFA54B#AFA54B

#AFA54B is a light, moderate yellow. Relative luminance 0.365; OKLCH L 71.2% C 0.112 H 103.0°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA54B
RGBrgb(175, 165, 75)
HSLhsl(54, 40%, 49%)
HSVhsv(54, 57%, 69%)
CMYKcmyk(0%, 5.7%, 57.1%, 31.4%)
CIE-LABlab(66.93, -8.14, 47.09)
CIE-LCHlch(66.93, 47.78, 99.81°)
OKLaboklab(71.21% -0.0253 0.1094)
OKLCHoklch(71.21% 0.112 103)
XYZxyz(32.4054, 36.5334, 11.9999)
Luminance0.3653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA54B #4B55AF
analogous
#AF734B #AFA54B #87AF4B
triadic
#AFA54B #4BAFA5 #A54BAF
tetradic
#AFA54B #4BAF73 #4B55AF #AF4B87
square
#AFA54B #4BAF73 #4B55AF #AF4B87
split-complementary
#AFA54B #4B87AF #734BAF
monochromatic
#595426 #847D39 #AFA54B #C3BB74 #D6D09F

Accessibility & contrast

On white

2.53
#AFA54B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#AFA54B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA54B
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA54B#FFFFFF#000000##000000
##AFA54B1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A042
Deuteranopia (green-blind)
#B6A550
Tritanopia (blue-blind)
#BB9B91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa54b;
/* rgb */ color: rgb(175, 165, 75);
/* oklch */ color: oklch(71.2% 0.112 103.0);
Tailwind
colors: {
  custom: {
    50: '#c9bf80',
    500: '#afa54b',
    950: '#000000',
  },
}
SCSS
$custom: #afa54b;
$custom-light: #c9bf80;
$custom-dark: #000000;
JSON
{
  "hex": "#afa54b",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 75
  },
  "hsl": {
    "h": 54,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.71207,
    "c": 0.11227,
    "h": 103
  },
  "luminance": 0.36532
}

Semantic roles & 50–950 ramp

primary
#AFA54B
secondary
#9398C2
accent
#64D058
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA54B

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

Preview Lab → · Contrast checker → · Palette generator →

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