#AFB831#AFB831

#AFB831 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.2% C 0.152 H 113.3°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#AFB831
RGBrgb(175, 184, 49)
HSLhsl(64, 58%, 46%)
HSVhsv(64, 73%, 72%)
CMYKcmyk(4.9%, 0%, 73.4%, 27.8%)
CIE-LABlab(71.97, -19.53, 63.09)
CIE-LCHlch(71.97, 66.05, 107.20°)
OKLaboklab(75.17% -0.0601 0.1393)
OKLCHoklch(75.17% 0.152 113.3)
XYZxyz(35.3751, 43.6174, 9.4607)
Luminance0.4362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB831 #3A31B8
analogous
#B87D31 #AFB831 #6BB831
triadic
#AFB831 #31AFB8 #B831AF
tetradic
#AFB831 #31B87D #3A31B8 #B8316B
square
#AFB831 #31B87D #3A31B8 #B8316B
split-complementary
#AFB831 #316BB8 #7D31B8
monochromatic
#535717 #818824 #AFB831 #C9D255 #D9DE85

Accessibility & contrast

On white

2.16
#AFB831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#AFB831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB831
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB831#FFFFFF#000000##000000
##AFB8311.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF15
Deuteranopia (green-blind)
#C6B23C
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb831;
/* rgb */ color: rgb(175, 184, 49);
/* oklch */ color: oklch(75.2% 0.152 113.3);
Tailwind
colors: {
  custom: {
    50: '#cacd73',
    500: '#afb831',
    950: '#000000',
  },
}
SCSS
$custom: #afb831;
$custom-light: #cacd73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb831",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 64,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75168,
    "c": 0.15174,
    "h": 113.3
  },
  "luminance": 0.43617
}

Semantic roles & 50–950 ramp

primary
#AFB831
secondary
#827DC8
accent
#47E151
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB831

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

Preview Lab → · Contrast checker → · Palette generator →

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