#AFAF3E#AFAF3E

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

Color values

HEX#AFAF3E
RGBrgb(175, 175, 62)
HSLhsl(60, 48%, 46%)
HSVhsv(60, 65%, 69%)
CMYKcmyk(0%, 0%, 64.6%, 31.4%)
CIE-LABlab(69.56, -14.26, 55.75)
CIE-LCHlch(69.56, 57.54, 104.35°)
OKLaboklab(73.26% -0.0441 0.126)
OKLCHoklch(73.26% 0.134 109.3)
XYZxyz(33.8798, 40.1227, 10.5163)
Luminance0.4012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF3E #3E3EAF
analogous
#AF773E #AFAF3E #77AF3E
triadic
#AFAF3E #3EAFAF #AF3EAF
tetradic
#AFAF3E #3EAF77 #3E3EAF #AF3E77
square
#AFAF3E #3EAF77 #3E3EAF #AF3E77
split-complementary
#AFAF3E #3E77AF #773EAF
monochromatic
#55551E #82822E #AFAF3E #C8C863 #D8D890

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAF3E#FFFFFF#000000##000000
##AFAF3E1.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)
#BDA82F
Deuteranopia (green-blind)
#BEAC45
Tritanopia (blue-blind)
#BBA498
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf3e;
/* rgb */ color: rgb(175, 175, 62);
/* oklch */ color: oklch(73.3% 0.134 109.3);
Tailwind
colors: {
  custom: {
    50: '#cac679',
    500: '#afaf3e',
    950: '#000000',
  },
}
SCSS
$custom: #afaf3e;
$custom-light: #cac679;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf3e",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 62
  },
  "hsl": {
    "h": 60,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.73264,
    "c": 0.1335,
    "h": 109.3
  },
  "luminance": 0.40122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFAF3E

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

Preview Lab → · Contrast checker → · Palette generator →

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