#AFAF47#AFAF47

#AFAF47 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.4% C 0.126 H 109.1°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#AFAF47
RGBrgb(175, 175, 71)
HSLhsl(60, 42%, 48%)
HSVhsv(60, 59%, 69%)
CMYKcmyk(0%, 0%, 59.4%, 31.4%)
CIE-LABlab(69.63, -13.66, 51.95)
CIE-LCHlch(69.63, 53.72, 104.73°)
OKLaboklab(73.35% -0.0414 0.1193)
OKLCHoklch(73.35% 0.126 109.1)
XYZxyz(34.1475, 40.2298, 11.9263)
Luminance0.4023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF47 #4747AF
analogous
#AF7B47 #AFAF47 #7BAF47
triadic
#AFAF47 #47AFAF #AF47AF
tetradic
#AFAF47 #47AF7B #4747AF #AF477B
square
#AFAF47 #47AF7B #4747AF #AF477B
split-complementary
#AFAF47 #477BAF #7B47AF
monochromatic
#585824 #838335 #AFAF47 #C4C46F #D6D69A

Accessibility & contrast

On white

2.32
#AFAF47 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.05
#AFAF47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF47
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF47#FFFFFF#000000##000000
##AFAF471.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA83B
Deuteranopia (green-blind)
#BEAC4D
Tritanopia (blue-blind)
#BBA599
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf47;
/* rgb */ color: rgb(175, 175, 71);
/* oklch */ color: oklch(73.4% 0.126 109.1);
Tailwind
colors: {
  custom: {
    50: '#c9c67e',
    500: '#afaf47',
    950: '#000000',
  },
}
SCSS
$custom: #afaf47;
$custom-light: #c9c67e;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf47",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 71
  },
  "hsl": {
    "h": 60,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.7335,
    "c": 0.12625,
    "h": 109.1
  },
  "luminance": 0.40229
}

Semantic roles & 50–950 ramp

primary
#AFAF47
secondary
#8F8FC2
accent
#56D256
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFAF47

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

Preview Lab → · Contrast checker → · Palette generator →

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