#AFB552#AFB552

#AFB552 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.8% C 0.123 H 112.2°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#AFB552
RGBrgb(175, 181, 82)
HSLhsl(64, 40%, 52%)
HSVhsv(64, 55%, 71%)
CMYKcmyk(3.3%, 0%, 54.7%, 29%)
CIE-LABlab(71.40, -15.88, 48.90)
CIE-LCHlch(71.40, 51.41, 107.99°)
OKLaboklab(74.79% -0.0465 0.1141)
OKLCHoklch(74.79% 0.123 112.2)
XYZxyz(35.7268, 42.7716, 14.3547)
Luminance0.4277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB552 #5852B5
analogous
#B58A52 #AFB552 #7EB552
triadic
#AFB552 #52AFB5 #B552AF
tetradic
#AFB552 #52B58A #5852B5 #B5527E
square
#AFB552 #52B58A #5852B5 #B5527E
split-complementary
#AFB552 #527EB5 #8A52B5
monochromatic
#5F622A #888D3C #AFB552 #C3C77D #D7DAA8

Accessibility & contrast

On white

2.20
#AFB552 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.55
#AFB552 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB552
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB552#FFFFFF#000000##000000
##AFB5521.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AE48
Deuteranopia (green-blind)
#C1B058
Tritanopia (blue-blind)
#B9AB9F
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb552;
/* rgb */ color: rgb(175, 181, 82);
/* oklch */ color: oklch(74.8% 0.123 112.2);
Tailwind
colors: {
  custom: {
    50: '#c9cb86',
    500: '#afb552',
    950: '#000000',
  },
}
SCSS
$custom: #afb552;
$custom-light: #c9cb86;
$custom-dark: #000000;
JSON
{
  "hex": "#afb552",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 82
  },
  "hsl": {
    "h": 63.636,
    "s": 40.081,
    "l": 51.569
  },
  "oklch": {
    "l": 0.74794,
    "c": 0.12321,
    "h": 112.2
  },
  "luminance": 0.42771
}

Semantic roles & 50–950 ramp

primary
#AFB552
secondary
#9E9CC7
accent
#58D05F
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB552

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

Preview Lab → · Contrast checker → · Palette generator →

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