#AFA852#AFA852

#AFA852 is a light, moderate yellow. Relative luminance 0.377; OKLCH L 71.9% C 0.109 H 104.6°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA852
RGBrgb(175, 168, 82)
HSLhsl(55, 37%, 50%)
HSVhsv(55, 53%, 69%)
CMYKcmyk(0%, 4%, 53.1%, 31.4%)
CIE-LABlab(67.82, -9.15, 44.75)
CIE-LCHlch(67.82, 45.68, 101.55°)
OKLaboklab(71.94% -0.0273 0.1051)
OKLCHoklch(71.94% 0.109 104.6)
XYZxyz(33.2058, 37.7295, 13.5144)
Luminance0.3773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA852 #5259AF
analogous
#AF7952 #AFA852 #87AF52
triadic
#AFA852 #52AFA8 #A852AF
tetradic
#AFA852 #52AF79 #5259AF #AF5287
square
#AFA852 #52AF79 #5259AF #AF5287
split-complementary
#AFA852 #5287AF #7952AF
monochromatic
#5C582B #86803E #AFA852 #C2BD7C #D6D2A6

Accessibility & contrast

On white

2.46
#AFA852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AFA852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA852
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA852#FFFFFF#000000##000000
##AFA8521.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A34A
Deuteranopia (green-blind)
#B7A756
Tritanopia (blue-blind)
#BA9E95
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa852;
/* rgb */ color: rgb(175, 168, 82);
/* oklch */ color: oklch(71.9% 0.109 104.6);
Tailwind
colors: {
  custom: {
    50: '#c9c185',
    500: '#afa852',
    950: '#000000',
  },
}
SCSS
$custom: #afa852;
$custom-light: #c9c185;
$custom-dark: #000000;
JSON
{
  "hex": "#afa852",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 82
  },
  "hsl": {
    "h": 55.484,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.71943,
    "c": 0.10864,
    "h": 104.6
  },
  "luminance": 0.37728
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA852

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

Preview Lab → · Contrast checker → · Palette generator →

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