#AFB331#AFB331

#AFB331 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.1% C 0.146 H 111.3°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AFB331
RGBrgb(175, 179, 49)
HSLhsl(62, 57%, 45%)
HSVhsv(62, 73%, 70%)
CMYKcmyk(2.2%, 0%, 72.6%, 29.8%)
CIE-LABlab(70.58, -17.02, 61.76)
CIE-LCHlch(70.58, 64.07, 105.40°)
OKLaboklab(74.05% -0.0531 0.1365)
OKLCHoklch(74.05% 0.146 111.3)
XYZxyz(34.3548, 41.5768, 9.1205)
Luminance0.4158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB331 #3531B3
analogous
#B37631 #AFB331 #6EB331
triadic
#AFB331 #31AFB3 #B331AF
tetradic
#AFB331 #31B376 #3531B3 #B3316E
square
#AFB331 #31B376 #3531B3 #B3316E
split-complementary
#AFB331 #316EB3 #7631B3
monochromatic
#515317 #808324 #AFB331 #CCD052 #DADD82

Accessibility & contrast

On white

2.25
#AFB331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#AFB331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB331
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB331#FFFFFF#000000##000000
##AFB3311.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB18
Deuteranopia (green-blind)
#C2AE3B
Tritanopia (blue-blind)
#BBA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb331;
/* rgb */ color: rgb(175, 179, 49);
/* oklch */ color: oklch(74.1% 0.146 111.3);
Tailwind
colors: {
  custom: {
    50: '#cac973',
    500: '#afb331',
    950: '#000000',
  },
}
SCSS
$custom: #afb331;
$custom-light: #cac973;
$custom-dark: #000000;
JSON
{
  "hex": "#afb331",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 61.846,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74052,
    "c": 0.14648,
    "h": 111.3
  },
  "luminance": 0.41576
}

Semantic roles & 50–950 ramp

primary
#AFB331
secondary
#7C7AC6
accent
#48E04C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB331

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

Preview Lab → · Contrast checker → · Palette generator →

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