#AFAF3C#AFAF3C

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

Color values

HEX#AFAF3C
RGBrgb(175, 175, 60)
HSLhsl(60, 49%, 46%)
HSVhsv(60, 66%, 69%)
CMYKcmyk(0%, 0%, 65.7%, 31.4%)
CIE-LABlab(69.54, -14.38, 56.56)
CIE-LCHlch(69.54, 58.36, 104.27°)
OKLaboklab(73.25% -0.0446 0.1274)
OKLCHoklch(73.25% 0.135 109.3)
XYZxyz(33.8259, 40.1011, 10.2325)
Luminance0.4010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF3C #3C3CAF
analogous
#AF753C #AFAF3C #75AF3C
triadic
#AFAF3C #3CAFAF #AF3CAF
tetradic
#AFAF3C #3CAF75 #3C3CAF #AF3C75
square
#AFAF3C #3CAF75 #3C3CAF #AF3C75
split-complementary
#AFAF3C #3C75AF #753CAF
monochromatic
#54541D #81812C #AFAF3C #C8C860 #D8D88D

Accessibility & contrast

On white

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

On black

9.02
#AFAF3C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF3C
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF3C#FFFFFF#000000##000000
##AFAF3C1.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afaf3c;
/* rgb */ color: rgb(175, 175, 60);
/* oklch */ color: oklch(73.2% 0.135 109.3);
Tailwind
colors: {
  custom: {
    50: '#cac678',
    500: '#afaf3c',
    950: '#000000',
  },
}
SCSS
$custom: #afaf3c;
$custom-light: #cac678;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf3c",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 60
  },
  "hsl": {
    "h": 60,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73247,
    "c": 0.13499,
    "h": 109.3
  },
  "luminance": 0.401
}

Semantic roles & 50–950 ramp

primary
#AFAF3C
secondary
#8484C3
accent
#4FD84F
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFAF3C

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

Preview Lab → · Contrast checker → · Palette generator →

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