#AFB132#AFB132

#AFB132 is a light, vivid yellow. Relative luminance 0.408; OKLCH L 73.6% C 0.144 H 110.4°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#AFB132
RGBrgb(175, 177, 50)
HSLhsl(61, 56%, 45%)
HSVhsv(61, 72%, 69%)
CMYKcmyk(1.1%, 0%, 71.8%, 30.6%)
CIE-LABlab(70.03, -15.95, 60.88)
CIE-LCHlch(70.03, 62.94, 104.68°)
OKLaboklab(73.61% -0.0501 0.1348)
OKLCHoklch(73.61% 0.144 110.4)
XYZxyz(33.9782, 40.7895, 9.1003)
Luminance0.4079 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB132 #3432B1
analogous
#B17432 #AFB132 #70B132
triadic
#AFB132 #32AFB1 #B132AF
tetradic
#AFB132 #32B174 #3432B1 #B13270
square
#AFB132 #32B174 #3432B1 #B13270
split-complementary
#AFB132 #3270B1 #7432B1
monochromatic
#515217 #808125 #AFB132 #CCCE52 #DADC82

Accessibility & contrast

On white

2.29
#AFB132 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.16
#AFB132 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB132
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB132#FFFFFF#000000##000000
##AFB1321.002.299.169.16
#FFFFFF2.291.0021.0021.00
#0000009.1621.001.001.00
##0000009.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA91B
Deuteranopia (green-blind)
#C0AD3C
Tritanopia (blue-blind)
#BBA698
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb132;
/* rgb */ color: rgb(175, 177, 50);
/* oklch */ color: oklch(73.6% 0.144 110.4);
Tailwind
colors: {
  custom: {
    50: '#cac873',
    500: '#afb132',
    950: '#000000',
  },
}
SCSS
$custom: #afb132;
$custom-light: #cac873;
$custom-dark: #000000;
JSON
{
  "hex": "#afb132",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 50
  },
  "hsl": {
    "h": 60.945,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73614,
    "c": 0.14381,
    "h": 110.4
  },
  "luminance": 0.40789
}

Semantic roles & 50–950 ramp

primary
#AFB132
secondary
#7B7AC5
accent
#49DF4B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB132

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

Preview Lab → · Contrast checker → · Palette generator →

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