#AFA239#AFA239

#AFA239 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.124 H 102.2°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#AFA239
RGBrgb(175, 162, 57)
HSLhsl(53, 51%, 45%)
HSVhsv(53, 67%, 69%)
CMYKcmyk(0%, 7.4%, 67.4%, 31.4%)
CIE-LABlab(65.94, -7.78, 54.09)
CIE-LCHlch(65.94, 54.64, 98.19°)
OKLaboklab(70.38% -0.0263 0.1217)
OKLCHoklch(70.38% 0.125 102.2)
XYZxyz(31.3393, 35.2513, 9.0235)
Luminance0.3525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA239 #3946AF
analogous
#AF6739 #AFA239 #81AF39
triadic
#AFA239 #39AFA2 #A239AF
tetradic
#AFA239 #39AF67 #3946AF #AF3981
square
#AFA239 #39AF67 #3946AF #AF3981
split-complementary
#AFA239 #3981AF #6739AF
monochromatic
#534D1B #81772A #AFA239 #CABE5B #D9D08A

Accessibility & contrast

On white

2.61
#AFA239 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#AFA239 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA239
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA239#FFFFFF#000000##000000
##AFA2391.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D2B
Deuteranopia (green-blind)
#B4A33F
Tritanopia (blue-blind)
#BC978C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa239;
/* rgb */ color: rgb(175, 162, 57);
/* oklch */ color: oklch(70.4% 0.124 102.2);
Tailwind
colors: {
  custom: {
    50: '#cabd75',
    500: '#afa239',
    950: '#000000',
  },
}
SCSS
$custom: #afa239;
$custom-light: #cabd75;
$custom-dark: #000000;
JSON
{
  "hex": "#afa239",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 57
  },
  "hsl": {
    "h": 53.39,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70375,
    "c": 0.1245,
    "h": 102.2
  },
  "luminance": 0.3525
}

Semantic roles & 50–950 ramp

primary
#AFA239
secondary
#8188C3
accent
#5DDA4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA239

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

Preview Lab → · Contrast checker → · Palette generator →

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