#AFA339#AFA339

#AFA339 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.125 H 102.8°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA339
RGBrgb(175, 163, 57)
HSLhsl(54, 51%, 45%)
HSVhsv(54, 67%, 69%)
CMYKcmyk(0%, 6.9%, 67.4%, 31.4%)
CIE-LABlab(66.22, -8.31, 54.37)
CIE-LCHlch(66.22, 55.00, 98.69°)
OKLaboklab(70.59% -0.0278 0.1223)
OKLCHoklch(70.59% 0.125 102.8)
XYZxyz(31.5162, 35.6050, 9.0825)
Luminance0.3560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA339 #3945AF
analogous
#AF6839 #AFA339 #80AF39
triadic
#AFA339 #39AFA3 #A339AF
tetradic
#AFA339 #39AF68 #3945AF #AF3980
square
#AFA339 #39AF68 #3945AF #AF3980
split-complementary
#AFA339 #3980AF #6839AF
monochromatic
#534D1B #81782A #AFA339 #CABF5B #D9D18A

Accessibility & contrast

On white

2.59
#AFA339 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#AFA339 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA339
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA339#FFFFFF#000000##000000
##AFA3391.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E2B
Deuteranopia (green-blind)
#B5A33F
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa339;
/* rgb */ color: rgb(175, 163, 57);
/* oklch */ color: oklch(70.6% 0.125 102.8);
Tailwind
colors: {
  custom: {
    50: '#cabe75',
    500: '#afa339',
    950: '#000000',
  },
}
SCSS
$custom: #afa339;
$custom-light: #cabe75;
$custom-dark: #000000;
JSON
{
  "hex": "#afa339",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 57
  },
  "hsl": {
    "h": 53.898,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70592,
    "c": 0.12541,
    "h": 102.8
  },
  "luminance": 0.35604
}

Semantic roles & 50–950 ramp

primary
#AFA339
secondary
#8187C3
accent
#5CDA4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA339

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

Preview Lab → · Contrast checker → · Palette generator →

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