#AFA138#AFA138

#AFA138 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#AFA138
RGBrgb(175, 161, 56)
HSLhsl(53, 52%, 45%)
HSVhsv(53, 68%, 69%)
CMYKcmyk(0%, 8%, 68%, 31.4%)
CIE-LABlab(65.66, -7.31, 54.21)
CIE-LCHlch(65.66, 54.70, 97.68°)
OKLaboklab(70.15% -0.0251 0.1218)
OKLCHoklch(70.15% 0.124 101.6)
XYZxyz(31.1392, 34.8905, 8.8349)
Luminance0.3489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA138 #3846AF
analogous
#AF6538 #AFA138 #81AF38
triadic
#AFA138 #38AFA1 #A138AF
tetradic
#AFA138 #38AF65 #3846AF #AF3881
square
#AFA138 #38AF65 #3846AF #AF3881
split-complementary
#AFA138 #3881AF #6538AF
monochromatic
#524C1A #817629 #AFA138 #CABD5A #D9D088

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA138#FFFFFF#000000##000000
##AFA1381.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)
#B09C2A
Deuteranopia (green-blind)
#B4A23E
Tritanopia (blue-blind)
#BC968C
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa138;
/* rgb */ color: rgb(175, 161, 56);
/* oklch */ color: oklch(70.2% 0.124 101.6);
Tailwind
colors: {
  custom: {
    50: '#cabc74',
    500: '#afa138',
    950: '#000000',
  },
}
SCSS
$custom: #afa138;
$custom-light: #cabc74;
$custom-dark: #000000;
JSON
{
  "hex": "#afa138",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 52.941,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.7015,
    "c": 0.12435,
    "h": 101.6
  },
  "luminance": 0.34889
}

Semantic roles & 50–950 ramp

primary
#AFA138
secondary
#8088C3
accent
#5EDB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA138

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

Preview Lab → · Contrast checker → · Palette generator →

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