#AFAF23#AFAF23

#AFAF23 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.1% C 0.150 H 109.6°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#AFAF23
RGBrgb(175, 175, 35)
HSLhsl(60, 67%, 41%)
HSVhsv(60, 80%, 69%)
CMYKcmyk(0%, 0%, 80%, 31.4%)
CIE-LABlab(69.40, -15.55, 65.12)
CIE-LCHlch(69.40, 66.95, 103.43°)
OKLaboklab(73.08% -0.0502 0.1411)
OKLCHoklch(73.08% 0.15 109.6)
XYZxyz(33.3138, 39.8963, 7.5357)
Luminance0.3990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF23 #2323AF
analogous
#AF6923 #AFAF23 #69AF23
triadic
#AFAF23 #23AFAF #AF23AF
tetradic
#AFAF23 #23AF69 #2323AF #AF2369
square
#AFAF23 #23AF69 #2323AF #AF2369
split-complementary
#AFAF23 #2369AF #6923AF
monochromatic
#49490F #7C7C19 #AFAF23 #D7D738 #E1E16B

Accessibility & contrast

On white

2.34
#AFAF23 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#AFAF23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF23
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF23#FFFFFF#000000##000000
##AFAF231.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BFAB30
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afaf23;
/* rgb */ color: rgb(175, 175, 35);
/* oklch */ color: oklch(73.1% 0.150 109.6);
Tailwind
colors: {
  custom: {
    50: '#cbc66c',
    500: '#afaf23',
    950: '#000000',
  },
}
SCSS
$custom: #afaf23;
$custom-light: #cbc66c;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf23",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 35
  },
  "hsl": {
    "h": 60,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73084,
    "c": 0.14977,
    "h": 109.6
  },
  "luminance": 0.39895
}

Semantic roles & 50–950 ramp

primary
#AFAF23
secondary
#6666C7
accent
#3EEA3E
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #AFAF23

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

Preview Lab → · Contrast checker → · Palette generator →

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