#AFA139#AFA139

#AFA139 is a light, vivid yellow. Relative luminance 0.349; OKLCH L 70.2% C 0.124 H 101.6°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#AFA139
RGBrgb(175, 161, 57)
HSLhsl(53, 51%, 45%)
HSVhsv(53, 67%, 69%)
CMYKcmyk(0%, 8%, 67.4%, 31.4%)
CIE-LABlab(65.67, -7.25, 53.80)
CIE-LCHlch(65.67, 54.29, 97.68°)
OKLaboklab(70.16% -0.0248 0.1211)
OKLCHoklch(70.16% 0.124 101.6)
XYZxyz(31.1639, 34.9004, 8.9650)
Luminance0.3490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA139 #3947AF
analogous
#AF6639 #AFA139 #82AF39
triadic
#AFA139 #39AFA1 #A139AF
tetradic
#AFA139 #39AF66 #3947AF #AF3982
square
#AFA139 #39AF66 #3947AF #AF3982
split-complementary
#AFA139 #3982AF #6639AF
monochromatic
#534C1B #81772A #AFA139 #CABD5B #D9CF8A

Accessibility & contrast

On white

2.63
#AFA139 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#AFA139 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA139
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA139#FFFFFF#000000##000000
##AFA1391.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C2B
Deuteranopia (green-blind)
#B4A23F
Tritanopia (blue-blind)
#BC968C
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa139;
/* rgb */ color: rgb(175, 161, 57);
/* oklch */ color: oklch(70.2% 0.124 101.6);
Tailwind
colors: {
  custom: {
    50: '#cabc75',
    500: '#afa139',
    950: '#000000',
  },
}
SCSS
$custom: #afa139;
$custom-light: #cabc75;
$custom-dark: #000000;
JSON
{
  "hex": "#afa139",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 57
  },
  "hsl": {
    "h": 52.881,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70158,
    "c": 0.12362,
    "h": 101.6
  },
  "luminance": 0.34899
}

Semantic roles & 50–950 ramp

primary
#AFA139
secondary
#8189C3
accent
#5EDA4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA139

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

Preview Lab → · Contrast checker → · Palette generator →

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