#AFAA23#AFAA23

#AFAA23 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.145 H 107.3°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AFAA23
RGBrgb(175, 170, 35)
HSLhsl(58, 67%, 41%)
HSVhsv(58, 80%, 69%)
CMYKcmyk(0%, 2.9%, 80%, 31.4%)
CIE-LABlab(68.01, -12.98, 63.90)
CIE-LCHlch(68.01, 65.21, 101.48°)
OKLaboklab(71.98% -0.0431 0.1385)
OKLCHoklch(71.98% 0.145 107.3)
XYZxyz(32.3586, 37.9859, 7.2173)
Luminance0.3799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA23 #2328AF
analogous
#AF6423 #AFAA23 #6EAF23
triadic
#AFAA23 #23AFAA #AA23AF
tetradic
#AFAA23 #23AF64 #2328AF #AF236E
square
#AFAA23 #23AF64 #2328AF #AF236E
split-complementary
#AFAA23 #236EAF #6423AF
monochromatic
#49470F #7C7819 #AFAA23 #D7D238 #E1DD6B

Accessibility & contrast

On white

2.44
#AFAA23 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#AFAA23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA23
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA23#FFFFFF#000000##000000
##AFAA231.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#BBA82F
Tritanopia (blue-blind)
#BC9E91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa23;
/* rgb */ color: rgb(175, 170, 35);
/* oklch */ color: oklch(72.0% 0.145 107.3);
Tailwind
colors: {
  custom: {
    50: '#cbc36b',
    500: '#afaa23',
    950: '#000000',
  },
}
SCSS
$custom: #afaa23;
$custom-light: #cbc36b;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa23",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 35
  },
  "hsl": {
    "h": 57.857,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.71978,
    "c": 0.14503,
    "h": 107.3
  },
  "luminance": 0.37985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFAA23

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

Preview Lab → · Contrast checker → · Palette generator →

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