#AFA039#AFA039

#AFA039 is a light, vivid yellow. Relative luminance 0.346; OKLCH L 69.9% C 0.123 H 100.9°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#AFA039
RGBrgb(175, 160, 57)
HSLhsl(52, 51%, 45%)
HSVhsv(52, 67%, 69%)
CMYKcmyk(0%, 8.6%, 67.4%, 31.4%)
CIE-LABlab(65.40, -6.72, 53.52)
CIE-LCHlch(65.40, 53.94, 97.16°)
OKLaboklab(69.94% -0.0233 0.1205)
OKLCHoklch(69.94% 0.123 100.9)
XYZxyz(30.9898, 34.5523, 8.9070)
Luminance0.3455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA039 #3948AF
analogous
#AF6539 #AFA039 #83AF39
triadic
#AFA039 #39AFA0 #A039AF
tetradic
#AFA039 #39AF65 #3948AF #AF3983
square
#AFA039 #39AF65 #3948AF #AF3983
split-complementary
#AFA039 #3983AF #6539AF
monochromatic
#534C1B #81762A #AFA039 #CABC5B #D9CF8A

Accessibility & contrast

On white

2.65
#AFA039 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#AFA039 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA039
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA039#FFFFFF#000000##000000
##AFA0391.002.657.917.91
#FFFFFF2.651.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B2B
Deuteranopia (green-blind)
#B3A13F
Tritanopia (blue-blind)
#BC958B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa039;
/* rgb */ color: rgb(175, 160, 57);
/* oklch */ color: oklch(69.9% 0.123 100.9);
Tailwind
colors: {
  custom: {
    50: '#cabb75',
    500: '#afa039',
    950: '#000000',
  },
}
SCSS
$custom: #afa039;
$custom-light: #cabb75;
$custom-dark: #000000;
JSON
{
  "hex": "#afa039",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 57
  },
  "hsl": {
    "h": 52.373,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.69942,
    "c": 0.12273,
    "h": 100.9
  },
  "luminance": 0.34551
}

Semantic roles & 50–950 ramp

primary
#AFA039
secondary
#8189C3
accent
#5FDA4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AFA039

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

Preview Lab → · Contrast checker → · Palette generator →

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