#AFB320#AFB320

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

Color values

HEX#AFB320
RGBrgb(175, 179, 32)
HSLhsl(62, 70%, 41%)
HSVhsv(62, 82%, 70%)
CMYKcmyk(2.2%, 0%, 82.1%, 29.8%)
CIE-LABlab(70.50, -17.68, 66.88)
CIE-LCHlch(70.50, 69.18, 104.81°)
OKLaboklab(73.96% -0.0563 0.1444)
OKLCHoklch(73.96% 0.155 111.3)
XYZxyz(34.0613, 41.4594, 7.5744)
Luminance0.4146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB320 #2420B3
analogous
#B36E20 #AFB320 #66B320
triadic
#AFB320 #20AFB3 #B320AF
tetradic
#AFB320 #20B36E #2420B3 #B32066
square
#AFB320 #20B36E #2420B3 #B32066
split-complementary
#AFB320 #2066B3 #6E20B3
monochromatic
#494B0D #7C7F17 #AFB320 #D6DB35 #E1E469

Accessibility & contrast

On white

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

On black

9.29
#AFB320 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB320
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB320#FFFFFF#000000##000000
##AFB3201.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb320;
/* rgb */ color: rgb(175, 179, 32);
/* oklch */ color: oklch(74.0% 0.155 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96b',
    500: '#afb320',
    950: '#000000',
  },
}
SCSS
$custom: #afb320;
$custom-light: #cbc96b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb320",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 32
  },
  "hsl": {
    "h": 61.633,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.73961,
    "c": 0.15496,
    "h": 111.3
  },
  "luminance": 0.41458
}

Semantic roles & 50–950 ramp

primary
#AFB320
secondary
#6865CA
accent
#3BEC40
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB320

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

Preview Lab → · Contrast checker → · Palette generator →

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