#AFA152#AFA152

#AFA152 is a light, moderate yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.102 H 99.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#AFA152
RGBrgb(175, 161, 82)
HSLhsl(51, 37%, 50%)
HSVhsv(51, 53%, 69%)
CMYKcmyk(0%, 8%, 53.1%, 31.4%)
CIE-LABlab(65.92, -5.43, 42.51)
CIE-LCHlch(65.92, 42.86, 97.29°)
OKLaboklab(70.43% -0.0167 0.1003)
OKLCHoklch(70.43% 0.102 99.4)
XYZxyz(31.9481, 35.2141, 13.0951)
Luminance0.3521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA152 #5260AF
analogous
#AF7252 #AFA152 #8EAF52
triadic
#AFA152 #52AFA1 #A152AF
tetradic
#AFA152 #52AF72 #5260AF #AF528E
square
#AFA152 #52AF72 #5260AF #AF528E
split-complementary
#AFA152 #528EAF #7252AF
monochromatic
#5C552B #867B3E #AFA152 #C2B87C #D6CEA6

Accessibility & contrast

On white

2.61
#AFA152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#AFA152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA152
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA152#FFFFFF#000000##000000
##AFA1521.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9D4B
Deuteranopia (green-blind)
#B2A256
Tritanopia (blue-blind)
#BB978F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa152;
/* rgb */ color: rgb(175, 161, 82);
/* oklch */ color: oklch(70.4% 0.102 99.4);
Tailwind
colors: {
  custom: {
    50: '#c9bc85',
    500: '#afa152',
    950: '#000000',
  },
}
SCSS
$custom: #afa152;
$custom-light: #c9bc85;
$custom-dark: #000000;
JSON
{
  "hex": "#afa152",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 82
  },
  "hsl": {
    "h": 50.968,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.7043,
    "c": 0.10164,
    "h": 99.4
  },
  "luminance": 0.35213
}

Semantic roles & 50–950 ramp

primary
#AFA152
secondary
#9AA0C3
accent
#6CCD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA152

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

Preview Lab → · Contrast checker → · Palette generator →

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