#AFA923#AFA923

#AFA923 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.8% C 0.144 H 106.8°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#AFA923
RGBrgb(175, 169, 35)
HSLhsl(57, 67%, 41%)
HSVhsv(57, 80%, 69%)
CMYKcmyk(0%, 3.4%, 80%, 31.4%)
CIE-LABlab(67.73, -12.47, 63.66)
CIE-LCHlch(67.73, 64.87, 101.08°)
OKLaboklab(71.76% -0.0416 0.138)
OKLCHoklch(71.76% 0.144 106.8)
XYZxyz(32.1719, 37.6124, 7.1550)
Luminance0.3761 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA923 #2329AF
analogous
#AF6323 #AFA923 #6FAF23
triadic
#AFA923 #23AFA9 #A923AF
tetradic
#AFA923 #23AF63 #2329AF #AF236F
square
#AFA923 #23AF63 #2329AF #AF236F
split-complementary
#AFA923 #236FAF #6323AF
monochromatic
#49460F #7C7819 #AFA923 #D7D038 #E1DC6B

Accessibility & contrast

On white

2.46
#AFA923 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#AFA923 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA923
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA923#FFFFFF#000000##000000
##AFA9231.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#BBA72F
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa923;
/* rgb */ color: rgb(175, 169, 35);
/* oklch */ color: oklch(71.8% 0.144 106.8);
Tailwind
colors: {
  custom: {
    50: '#cbc26b',
    500: '#afa923',
    950: '#000000',
  },
}
SCSS
$custom: #afa923;
$custom-light: #cbc26b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa923",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 35
  },
  "hsl": {
    "h": 57.429,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.71758,
    "c": 0.14411,
    "h": 106.8
  },
  "luminance": 0.37611
}

Semantic roles & 50–950 ramp

primary
#AFA923
secondary
#666AC7
accent
#46EA3E
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA923

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

Preview Lab → · Contrast checker → · Palette generator →

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