#AFA752#AFA752

#AFA752 is a light, moderate yellow. Relative luminance 0.374; OKLCH L 71.7% C 0.108 H 103.9°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#AFA752
RGBrgb(175, 167, 82)
HSLhsl(55, 37%, 50%)
HSVhsv(55, 53%, 69%)
CMYKcmyk(0%, 4.6%, 53.1%, 31.4%)
CIE-LABlab(67.55, -8.62, 44.43)
CIE-LCHlch(67.55, 45.26, 100.98°)
OKLaboklab(71.73% -0.0258 0.1044)
OKLCHoklch(71.73% 0.108 103.9)
XYZxyz(33.0219, 37.3617, 13.4531)
Luminance0.3736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA752 #525AAF
analogous
#AF7952 #AFA752 #88AF52
triadic
#AFA752 #52AFA7 #A752AF
tetradic
#AFA752 #52AF79 #525AAF #AF5288
square
#AFA752 #52AF79 #525AAF #AF5288
split-complementary
#AFA752 #5288AF #7952AF
monochromatic
#5C582B #86803E #AFA752 #C2BC7C #D6D2A6

Accessibility & contrast

On white

2.48
#AFA752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#AFA752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA752
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA752#FFFFFF#000000##000000
##AFA7521.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A24A
Deuteranopia (green-blind)
#B7A756
Tritanopia (blue-blind)
#BA9D94
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa752;
/* rgb */ color: rgb(175, 167, 82);
/* oklch */ color: oklch(71.7% 0.108 103.9);
Tailwind
colors: {
  custom: {
    50: '#c9c085',
    500: '#afa752',
    950: '#000000',
  },
}
SCSS
$custom: #afa752;
$custom-light: #c9c085;
$custom-dark: #000000;
JSON
{
  "hex": "#afa752",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 82
  },
  "hsl": {
    "h": 54.839,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.71726,
    "c": 0.10759,
    "h": 103.9
  },
  "luminance": 0.37361
}

Semantic roles & 50–950 ramp

primary
#AFA752
secondary
#9A9DC3
accent
#65CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA752

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

Preview Lab → · Contrast checker → · Palette generator →

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