#AFB652#AFB652

#AFB652 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.0% C 0.124 H 112.7°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#AFB652
RGBrgb(175, 182, 82)
HSLhsl(64, 41%, 52%)
HSVhsv(64, 55%, 71%)
CMYKcmyk(3.8%, 0%, 54.9%, 28.6%)
CIE-LABlab(71.68, -16.39, 49.22)
CIE-LCHlch(71.68, 51.87, 108.41°)
OKLaboklab(75.02% -0.0479 0.1148)
OKLCHoklch(75.02% 0.124 112.7)
XYZxyz(35.9309, 43.1797, 14.4227)
Luminance0.4318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB652 #5952B6
analogous
#B68B52 #AFB652 #7DB652
triadic
#AFB652 #52AFB6 #B652AF
tetradic
#AFB652 #52B68B #5952B6 #B6527D
square
#AFB652 #52B68B #5952B6 #B6527D
split-complementary
#AFB652 #527DB6 #8B52B6
monochromatic
#60642A #898F3C #AFB652 #C3C87D #D7DAA8

Accessibility & contrast

On white

2.18
#AFB652 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#AFB652 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB652
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB652#FFFFFF#000000##000000
##AFB6521.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AE48
Deuteranopia (green-blind)
#C2B158
Tritanopia (blue-blind)
#B9ACA0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb652;
/* rgb */ color: rgb(175, 182, 82);
/* oklch */ color: oklch(75.0% 0.124 112.7);
Tailwind
colors: {
  custom: {
    50: '#c9cb86',
    500: '#afb652',
    950: '#000000',
  },
}
SCSS
$custom: #afb652;
$custom-light: #c9cb86;
$custom-dark: #000000;
JSON
{
  "hex": "#afb652",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 82
  },
  "hsl": {
    "h": 64.2,
    "s": 40.65,
    "l": 51.765
  },
  "oklch": {
    "l": 0.75016,
    "c": 0.12438,
    "h": 112.7
  },
  "luminance": 0.43179
}

Semantic roles & 50–950 ramp

primary
#AFB652
secondary
#9F9CC8
accent
#57D160
background
#FCFCF8
surface
#F9F8F0
border
#D2D1CB
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB652

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

Preview Lab → · Contrast checker → · Palette generator →

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