#AFB327#AFB327

#AFB327 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.0% C 0.152 H 111.3°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#AFB327
RGBrgb(175, 179, 39)
HSLhsl(62, 64%, 43%)
HSVhsv(62, 78%, 70%)
CMYKcmyk(2.2%, 0%, 78.2%, 29.8%)
CIE-LABlab(70.53, -17.44, 64.96)
CIE-LCHlch(70.53, 67.27, 105.03°)
OKLaboklab(73.99% -0.0552 0.1415)
OKLCHoklch(73.99% 0.152 111.3)
XYZxyz(34.1667, 41.5016, 8.1299)
Luminance0.4150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB327 #2B27B3
analogous
#B37127 #AFB327 #69B327
triadic
#AFB327 #27AFB3 #B327AF
tetradic
#AFB327 #27B371 #2B27B3 #B32769
square
#AFB327 #27B371 #2B27B3 #B32769
split-complementary
#AFB327 #2769B3 #7127B3
monochromatic
#4D4E11 #7E811C #AFB327 #D1D641 #DEE174

Accessibility & contrast

On white

2.26
#AFB327 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#AFB327 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB327
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB327#FFFFFF#000000##000000
##AFB3271.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB00
Deuteranopia (green-blind)
#C2AE34
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb327;
/* rgb */ color: rgb(175, 179, 39);
/* oklch */ color: oklch(74.0% 0.152 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96e',
    500: '#afb327',
    950: '#000000',
  },
}
SCSS
$custom: #afb327;
$custom-light: #cbc96e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb327",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 39
  },
  "hsl": {
    "h": 61.714,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.73994,
    "c": 0.15187,
    "h": 111.3
  },
  "luminance": 0.41501
}

Semantic roles & 50–950 ramp

primary
#AFB327
secondary
#706EC8
accent
#41E745
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB327

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

Preview Lab → · Contrast checker → · Palette generator →

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