#AFAF46#AFAF46

#AFAF46 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.3% C 0.127 H 109.2°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#AFAF46
RGBrgb(175, 175, 70)
HSLhsl(60, 43%, 48%)
HSVhsv(60, 60%, 69%)
CMYKcmyk(0%, 0%, 60%, 31.4%)
CIE-LABlab(69.62, -13.73, 52.38)
CIE-LCHlch(69.62, 54.15, 104.69°)
OKLaboklab(73.34% -0.0417 0.1201)
OKLCHoklch(73.34% 0.127 109.2)
XYZxyz(34.1157, 40.2170, 11.7587)
Luminance0.4022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF46 #4646AF
analogous
#AF7A46 #AFAF46 #7AAF46
triadic
#AFAF46 #46AFAF #AF46AF
tetradic
#AFAF46 #46AF7A #4646AF #AF467A
square
#AFAF46 #46AF7A #4646AF #AF467A
split-complementary
#AFAF46 #467AAF #7A46AF
monochromatic
#585823 #838335 #AFAF46 #C5C56D #D6D699

Accessibility & contrast

On white

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

On black

9.04
#AFAF46 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF46
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF46#FFFFFF#000000##000000
##AFAF461.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afaf46;
/* rgb */ color: rgb(175, 175, 70);
/* oklch */ color: oklch(73.3% 0.127 109.2);
Tailwind
colors: {
  custom: {
    50: '#c9c67e',
    500: '#afaf46',
    950: '#000000',
  },
}
SCSS
$custom: #afaf46;
$custom-light: #c9c67e;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf46",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 70
  },
  "hsl": {
    "h": 60,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.73339,
    "c": 0.1271,
    "h": 109.2
  },
  "luminance": 0.40216
}

Semantic roles & 50–950 ramp

primary
#AFAF46
secondary
#8E8EC2
accent
#55D355
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFAF46

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

Preview Lab → · Contrast checker → · Palette generator →

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