#AFAF40#AFAF40

#AFAF40 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.3% C 0.132 H 109.3°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#AFAF40
RGBrgb(175, 175, 64)
HSLhsl(60, 46%, 47%)
HSVhsv(60, 63%, 69%)
CMYKcmyk(0%, 0%, 63.4%, 31.4%)
CIE-LABlab(69.57, -14.14, 54.93)
CIE-LCHlch(69.57, 56.72, 104.43°)
OKLaboklab(73.28% -0.0435 0.1246)
OKLCHoklch(73.28% 0.132 109.3)
XYZxyz(33.9357, 40.1450, 10.8106)
Luminance0.4014 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF40 #4040AF
analogous
#AF7840 #AFAF40 #78AF40
triadic
#AFAF40 #40AFAF #AF40AF
tetradic
#AFAF40 #40AF78 #4040AF #AF4078
square
#AFAF40 #40AF78 #4040AF #AF4078
split-complementary
#AFAF40 #4078AF #7840AF
monochromatic
#55551F #828230 #AFAF40 #C7C765 #D7D792

Accessibility & contrast

On white

2.33
#AFAF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#AFAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF40
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF40#FFFFFF#000000##000000
##AFAF401.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA832
Deuteranopia (green-blind)
#BEAC47
Tritanopia (blue-blind)
#BBA498
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf40;
/* rgb */ color: rgb(175, 175, 64);
/* oklch */ color: oklch(73.3% 0.132 109.3);
Tailwind
colors: {
  custom: {
    50: '#cac67a',
    500: '#afaf40',
    950: '#000000',
  },
}
SCSS
$custom: #afaf40;
$custom-light: #cac67a;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf40",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.73282,
    "c": 0.13197,
    "h": 109.3
  },
  "luminance": 0.40144
}

Semantic roles & 50–950 ramp

primary
#AFAF40
secondary
#8888C3
accent
#52D652
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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