#AFB152#AFB152

#AFB152 is a light, moderate yellow. Relative luminance 0.412; OKLCH L 73.9% C 0.119 H 110.1°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#AFB152
RGBrgb(175, 177, 82)
HSLhsl(61, 38%, 51%)
HSVhsv(61, 54%, 69%)
CMYKcmyk(1.1%, 0%, 53.7%, 30.6%)
CIE-LABlab(70.29, -13.83, 47.63)
CIE-LCHlch(70.29, 49.59, 106.19°)
OKLaboklab(73.91% -0.0407 0.1114)
OKLCHoklch(73.91% 0.119 110.1)
XYZxyz(34.9252, 41.1682, 14.0875)
Luminance0.4117 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB152 #5452B1
analogous
#B18352 #AFB152 #7FB152
triadic
#AFB152 #52AFB1 #B152AF
tetradic
#AFB152 #52B183 #5452B1 #B1527F
square
#AFB152 #52B183 #5452B1 #B1527F
split-complementary
#AFB152 #527FB1 #8352B1
monochromatic
#5D5E2A #87883D #AFB152 #C3C47C #D6D7A6

Accessibility & contrast

On white

2.27
#AFB152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#AFB152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB152
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB152#FFFFFF#000000##000000
##AFB1521.002.279.239.23
#FFFFFF2.271.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDAA49
Deuteranopia (green-blind)
#BEAD57
Tritanopia (blue-blind)
#BAA79C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb152;
/* rgb */ color: rgb(175, 177, 82);
/* oklch */ color: oklch(73.9% 0.119 110.1);
Tailwind
colors: {
  custom: {
    50: '#c9c886',
    500: '#afb152',
    950: '#000000',
  },
}
SCSS
$custom: #afb152;
$custom-light: #c9c886;
$custom-dark: #000000;
JSON
{
  "hex": "#afb152",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 82
  },
  "hsl": {
    "h": 61.263,
    "s": 37.849,
    "l": 50.784
  },
  "oklch": {
    "l": 0.73912,
    "c": 0.11856,
    "h": 110.1
  },
  "luminance": 0.41167
}

Semantic roles & 50–950 ramp

primary
#AFB152
secondary
#9B9AC4
accent
#5ACE5C
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB152

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

Preview Lab → · Contrast checker → · Palette generator →

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