#AFB631#AFB631

#AFB631 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.7% C 0.150 H 112.5°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#AFB631
RGBrgb(175, 182, 49)
HSLhsl(63, 58%, 45%)
HSVhsv(63, 73%, 71%)
CMYKcmyk(3.8%, 0%, 73.1%, 28.6%)
CIE-LABlab(71.41, -18.53, 62.56)
CIE-LCHlch(71.41, 65.25, 106.50°)
OKLaboklab(74.72% -0.0573 0.1382)
OKLCHoklch(74.72% 0.15 112.5)
XYZxyz(34.9626, 42.7924, 9.3231)
Luminance0.4279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB631 #3831B6
analogous
#B67A31 #AFB631 #6CB631
triadic
#AFB631 #31AFB6 #B631AF
tetradic
#AFB631 #31B67A #3831B6 #B6316C
square
#AFB631 #31B67A #3831B6 #B6316C
split-complementary
#AFB631 #316CB6 #7A31B6
monochromatic
#525617 #818624 #AFB631 #CAD153 #D9DE84

Accessibility & contrast

On white

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

On black

9.56
#AFB631 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB631
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB631#FFFFFF#000000##000000
##AFB6311.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD16
Deuteranopia (green-blind)
#C4B03C
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb631;
/* rgb */ color: rgb(175, 182, 49);
/* oklch */ color: oklch(74.7% 0.150 112.5);
Tailwind
colors: {
  custom: {
    50: '#cacb73',
    500: '#afb631',
    950: '#000000',
  },
}
SCSS
$custom: #afb631;
$custom-light: #cacb73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb631",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 49
  },
  "hsl": {
    "h": 63.158,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74721,
    "c": 0.14961,
    "h": 112.5
  },
  "luminance": 0.42792
}

Semantic roles & 50–950 ramp

primary
#AFB631
secondary
#807CC7
accent
#47E14F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB631

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

Preview Lab → · Contrast checker → · Palette generator →

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