#AFAF3F#AFAF3F

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

Color values

HEX#AFAF3F
RGBrgb(175, 175, 63)
HSLhsl(60, 47%, 47%)
HSVhsv(60, 64%, 69%)
CMYKcmyk(0%, 0%, 64%, 31.4%)
CIE-LABlab(69.56, -14.20, 55.34)
CIE-LCHlch(69.56, 57.13, 104.39°)
OKLaboklab(73.27% -0.0438 0.1253)
OKLCHoklch(73.27% 0.133 109.3)
XYZxyz(33.9075, 40.1337, 10.6621)
Luminance0.4013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF3F #3F3FAF
analogous
#AF773F #AFAF3F #77AF3F
triadic
#AFAF3F #3FAFAF #AF3FAF
tetradic
#AFAF3F #3FAF77 #3F3FAF #AF3F77
square
#AFAF3F #3FAF77 #3F3FAF #AF3F77
split-complementary
#AFAF3F #3F77AF #773FAF
monochromatic
#55551F #82822F #AFAF3F #C7C764 #D7D791

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAF3F#FFFFFF#000000##000000
##AFAF3F1.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)
#BDA830
Deuteranopia (green-blind)
#BEAC46
Tritanopia (blue-blind)
#BBA498
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf3f;
/* rgb */ color: rgb(175, 175, 63);
/* oklch */ color: oklch(73.3% 0.133 109.3);
Tailwind
colors: {
  custom: {
    50: '#cac67a',
    500: '#afaf3f',
    950: '#000000',
  },
}
SCSS
$custom: #afaf3f;
$custom-light: #cac67a;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf3f",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 63
  },
  "hsl": {
    "h": 60,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.73273,
    "c": 0.13274,
    "h": 109.3
  },
  "luminance": 0.40133
}

Semantic roles & 50–950 ramp

primary
#AFAF3F
secondary
#8787C3
accent
#51D751
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFAF3F

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

Preview Lab → · Contrast checker → · Palette generator →

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