#AFA452#AFA452

#AFA452 is a light, moderate yellow. Relative luminance 0.363; OKLCH L 71.1% C 0.105 H 101.7°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#AFA452
RGBrgb(175, 164, 82)
HSLhsl(53, 37%, 50%)
HSVhsv(53, 53%, 69%)
CMYKcmyk(0%, 6.3%, 53.1%, 31.4%)
CIE-LABlab(66.73, -7.03, 43.47)
CIE-LCHlch(66.73, 44.04, 99.19°)
OKLaboklab(71.08% -0.0213 0.1024)
OKLCHoklch(71.08% 0.105 101.7)
XYZxyz(32.4786, 36.2752, 13.2720)
Luminance0.3627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA452 #525DAF
analogous
#AF7552 #AFA452 #8CAF52
triadic
#AFA452 #52AFA4 #A452AF
tetradic
#AFA452 #52AF75 #525DAF #AF528C
square
#AFA452 #52AF75 #525DAF #AF528C
split-complementary
#AFA452 #528CAF #7552AF
monochromatic
#5C562B #867D3E #AFA452 #C2BA7C #D6D0A6

Accessibility & contrast

On white

2.54
#AFA452 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#AFA452 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA452
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA452#FFFFFF#000000##000000
##AFA4521.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A04A
Deuteranopia (green-blind)
#B4A456
Tritanopia (blue-blind)
#BB9A91
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa452;
/* rgb */ color: rgb(175, 164, 82);
/* oklch */ color: oklch(71.1% 0.105 101.7);
Tailwind
colors: {
  custom: {
    50: '#c9be85',
    500: '#afa452',
    950: '#000000',
  },
}
SCSS
$custom: #afa452;
$custom-light: #c9be85;
$custom-dark: #000000;
JSON
{
  "hex": "#afa452",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 82
  },
  "hsl": {
    "h": 52.903,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.71076,
    "c": 0.10454,
    "h": 101.7
  },
  "luminance": 0.36274
}

Semantic roles & 50–950 ramp

primary
#AFA452
secondary
#9A9FC3
accent
#68CD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA452

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

Preview Lab → · Contrast checker → · Palette generator →

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