#AFB852#AFB852

#AFB852 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.5% C 0.127 H 113.6°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#AFB852
RGBrgb(175, 184, 82)
HSLhsl(65, 42%, 52%)
HSVhsv(65, 55%, 72%)
CMYKcmyk(4.9%, 0%, 55.4%, 27.8%)
CIE-LABlab(72.23, -17.40, 49.85)
CIE-LCHlch(72.23, 52.80, 109.24°)
OKLaboklab(75.46% -0.0508 0.1161)
OKLCHoklch(75.46% 0.127 113.6)
XYZxyz(36.3434, 44.0048, 14.5602)
Luminance0.4400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB852 #5B52B8
analogous
#B88E52 #AFB852 #7CB852
triadic
#AFB852 #52AFB8 #B852AF
tetradic
#AFB852 #52B88E #5B52B8 #B8527C
square
#AFB852 #52B88E #5B52B8 #B8527C
split-complementary
#AFB852 #527CB8 #8E52B8
monochromatic
#61662A #8A913C #AFB852 #C3CA7D #D7DCA9

Accessibility & contrast

On white

2.14
#AFB852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#AFB852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB852
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB852#FFFFFF#000000##000000
##AFB8521.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B048
Deuteranopia (green-blind)
#C4B258
Tritanopia (blue-blind)
#B9AEA2
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb852;
/* rgb */ color: rgb(175, 184, 82);
/* oklch */ color: oklch(75.5% 0.127 113.6);
Tailwind
colors: {
  custom: {
    50: '#c9cd86',
    500: '#afb852',
    950: '#000000',
  },
}
SCSS
$custom: #afb852;
$custom-light: #c9cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#afb852",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 82
  },
  "hsl": {
    "h": 65.294,
    "s": 41.803,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75459,
    "c": 0.12676,
    "h": 113.6
  },
  "luminance": 0.44004
}

Semantic roles & 50–950 ramp

primary
#AFB852
secondary
#A19DC9
accent
#56D261
background
#FCFCF8
surface
#F9F8F0
border
#D2D1CB
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB852

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

Preview Lab → · Contrast checker → · Palette generator →

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