#AF9852#AF9852

#AF9852 is a light, moderate yellow. Relative luminance 0.322; OKLCH L 68.5% C 0.094 H 91.6°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#AF9852
RGBrgb(175, 152, 82)
HSLhsl(45, 37%, 50%)
HSVhsv(45, 53%, 69%)
CMYKcmyk(0%, 13.1%, 53.1%, 31.4%)
CIE-LABlab(63.49, -0.58, 39.62)
CIE-LCHlch(63.49, 39.63, 90.84°)
OKLaboklab(68.51% -0.0026 0.0939)
OKLCHoklch(68.51% 0.094 91.6)
XYZxyz(30.4316, 32.1810, 12.5896)
Luminance0.3218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9852 #5269AF
analogous
#AF6952 #AF9852 #98AF52
triadic
#AF9852 #52AF98 #9852AF
tetradic
#AF9852 #52AF69 #5269AF #AF5298
square
#AF9852 #52AF69 #5269AF #AF5298
split-complementary
#AF9852 #5298AF #6952AF
monochromatic
#5C502B #86743E #AF9852 #C2B17C #D6CAA6

Accessibility & contrast

On white

2.82
#AF9852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.44
#AF9852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9852
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9852#FFFFFF#000000##000000
##AF98521.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5964C
Deuteranopia (green-blind)
#AB9D55
Tritanopia (blue-blind)
#BB8E88
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9852;
/* rgb */ color: rgb(175, 152, 82);
/* oklch */ color: oklch(68.5% 0.094 91.6);
Tailwind
colors: {
  custom: {
    50: '#c9b684',
    500: '#af9852',
    950: '#000000',
  },
}
SCSS
$custom: #af9852;
$custom-light: #c9b684;
$custom-dark: #000000;
JSON
{
  "hex": "#af9852",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 82
  },
  "hsl": {
    "h": 45.161,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.68514,
    "c": 0.09398,
    "h": 91.6
  },
  "luminance": 0.3218
}

Semantic roles & 50–950 ramp

primary
#AF9852
secondary
#9AA4C3
accent
#77CD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110B
muted
#82807C

Preview Lab

Preview with #AF9852

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

Preview Lab → · Contrast checker → · Palette generator →

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