#AFAF49#AFAF49

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

Color values

HEX#AFAF49
RGBrgb(175, 175, 73)
HSLhsl(60, 41%, 49%)
HSVhsv(60, 58%, 69%)
CMYKcmyk(0%, 0%, 58.3%, 31.4%)
CIE-LABlab(69.65, -13.51, 51.07)
CIE-LCHlch(69.65, 52.83, 104.82°)
OKLaboklab(73.37% -0.0408 0.1177)
OKLCHoklch(73.37% 0.125 109.1)
XYZxyz(34.2127, 40.2559, 12.2700)
Luminance0.4026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF49 #4949AF
analogous
#AF7C49 #AFAF49 #7CAF49
triadic
#AFAF49 #49AFAF #AF49AF
tetradic
#AFAF49 #49AF7C #4949AF #AF497C
square
#AFAF49 #49AF7C #4949AF #AF497C
split-complementary
#AFAF49 #497CAF #7C49AF
monochromatic
#595925 #848437 #AFAF49 #C4C471 #D6D69C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAF49#FFFFFF#000000##000000
##AFAF491.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)
#BCA83E
Deuteranopia (green-blind)
#BDAC4F
Tritanopia (blue-blind)
#BAA599
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf49;
/* rgb */ color: rgb(175, 175, 73);
/* oklch */ color: oklch(73.4% 0.125 109.1);
Tailwind
colors: {
  custom: {
    50: '#c9c680',
    500: '#afaf49',
    950: '#000000',
  },
}
SCSS
$custom: #afaf49;
$custom-light: #c9c680;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf49",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 73
  },
  "hsl": {
    "h": 60,
    "s": 41.129,
    "l": 48.627
  },
  "oklch": {
    "l": 0.7337,
    "c": 0.12454,
    "h": 109.1
  },
  "luminance": 0.40255
}

Semantic roles & 50–950 ramp

primary
#AFAF49
secondary
#9191C2
accent
#57D157
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130A
muted
#82827C

Preview Lab

Preview with #AFAF49

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

Preview Lab → · Contrast checker → · Palette generator →

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