#AFB531#AFB531

#AFB531 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.5% C 0.149 H 112.1°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#AFB531
RGBrgb(175, 181, 49)
HSLhsl(63, 57%, 45%)
HSVhsv(63, 73%, 71%)
CMYKcmyk(3.3%, 0%, 72.9%, 29%)
CIE-LABlab(71.14, -18.03, 62.30)
CIE-LCHlch(71.14, 64.85, 106.14°)
OKLaboklab(74.5% -0.0559 0.1376)
OKLCHoklch(74.5% 0.149 112.1)
XYZxyz(34.7586, 42.3843, 9.2551)
Luminance0.4238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB531 #3731B5
analogous
#B57931 #AFB531 #6DB531
triadic
#AFB531 #31AFB5 #B531AF
tetradic
#AFB531 #31B579 #3731B5 #B5316D
square
#AFB531 #31B579 #3731B5 #B5316D
split-complementary
#AFB531 #316DB5 #7931B5
monochromatic
#525517 #808524 #AFB531 #CBD053 #D9DD83

Accessibility & contrast

On white

2.22
#AFB531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#AFB531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB531
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB531#FFFFFF#000000##000000
##AFB5311.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD17
Deuteranopia (green-blind)
#C3B03C
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb531;
/* rgb */ color: rgb(175, 181, 49);
/* oklch */ color: oklch(74.5% 0.149 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb73',
    500: '#afb531',
    950: '#000000',
  },
}
SCSS
$custom: #afb531;
$custom-light: #cacb73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb531",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 49
  },
  "hsl": {
    "h": 62.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.74498,
    "c": 0.14856,
    "h": 112.1
  },
  "luminance": 0.42383
}

Semantic roles & 50–950 ramp

primary
#AFB531
secondary
#7F7BC7
accent
#47E14E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB531

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

Preview Lab → · Contrast checker → · Palette generator →

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