#AFB32F#AFB32F

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

Color values

HEX#AFB32F
RGBrgb(175, 179, 47)
HSLhsl(62, 58%, 44%)
HSVhsv(62, 74%, 70%)
CMYKcmyk(2.2%, 0%, 73.7%, 29.8%)
CIE-LABlab(70.57, -17.11, 62.45)
CIE-LCHlch(70.57, 64.75, 105.32°)
OKLaboklab(74.04% -0.0536 0.1376)
OKLCHoklch(74.04% 0.148 111.3)
XYZxyz(34.3135, 41.5603, 8.9032)
Luminance0.4156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB32F #332FB3
analogous
#B3752F #AFB32F #6DB32F
triadic
#AFB32F #2FAFB3 #B32FAF
tetradic
#AFB32F #2FB375 #332FB3 #B32F6D
square
#AFB32F #2FB375 #332FB3 #B32F6D
split-complementary
#AFB32F #2F6DB3 #752FB3
monochromatic
#505216 #808322 #AFB32F #CDD14F #DBDD7F

Accessibility & contrast

On white

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

On black

9.31
#AFB32F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB32F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB32F#FFFFFF#000000##000000
##AFB32F1.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb32f;
/* rgb */ color: rgb(175, 179, 47);
/* oklch */ color: oklch(74.0% 0.148 111.3);
Tailwind
colors: {
  custom: {
    50: '#cac972',
    500: '#afb32f',
    950: '#000000',
  },
}
SCSS
$custom: #afb32f;
$custom-light: #cac972;
$custom-dark: #000000;
JSON
{
  "hex": "#afb32f",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 47
  },
  "hsl": {
    "h": 61.818,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.74039,
    "c": 0.14765,
    "h": 111.3
  },
  "luminance": 0.41559
}

Semantic roles & 50–950 ramp

primary
#AFB32F
secondary
#7A78C6
accent
#46E24B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB32F

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

Preview Lab → · Contrast checker → · Palette generator →

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