#AFB328#AFB328

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

Color values

HEX#AFB328
RGBrgb(175, 179, 40)
HSLhsl(62, 63%, 43%)
HSVhsv(62, 78%, 70%)
CMYKcmyk(2.2%, 0%, 77.7%, 29.8%)
CIE-LABlab(70.53, -17.40, 64.67)
CIE-LCHlch(70.53, 66.97, 105.06°)
OKLaboklab(74% -0.055 0.1411)
OKLCHoklch(74% 0.151 111.3)
XYZxyz(34.1835, 41.5083, 8.2183)
Luminance0.4151 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB328 #2C28B3
analogous
#B37228 #AFB328 #69B328
triadic
#AFB328 #28AFB3 #B328AF
tetradic
#AFB328 #28B372 #2C28B3 #B32869
square
#AFB328 #28B372 #2C28B3 #B32869
split-complementary
#AFB328 #2869B3 #7228B3
monochromatic
#4D4F12 #7E811D #AFB328 #D1D543 #DDE075

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB328#FFFFFF#000000##000000
##AFB3281.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)
#BBA899
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb328;
/* rgb */ color: rgb(175, 179, 40);
/* oklch */ color: oklch(74.0% 0.151 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96e',
    500: '#afb328',
    950: '#000000',
  },
}
SCSS
$custom: #afb328;
$custom-light: #cbc96e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb328",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 40
  },
  "hsl": {
    "h": 61.727,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73999,
    "c": 0.15139,
    "h": 111.3
  },
  "luminance": 0.41507
}

Semantic roles & 50–950 ramp

primary
#AFB328
secondary
#726FC8
accent
#41E646
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB328

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

Preview Lab → · Contrast checker → · Palette generator →

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