#AFA438#AFA438

#AFA438 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.8% C 0.127 H 103.5°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#AFA438
RGBrgb(175, 164, 56)
HSLhsl(54, 52%, 45%)
HSVhsv(54, 68%, 69%)
CMYKcmyk(0%, 6.3%, 68%, 31.4%)
CIE-LABlab(66.48, -8.90, 55.05)
CIE-LCHlch(66.48, 55.77, 99.18°)
OKLaboklab(70.8% -0.0296 0.1236)
OKLCHoklch(70.8% 0.127 103.5)
XYZxyz(31.6697, 35.9517, 9.0118)
Luminance0.3595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA438 #3843AF
analogous
#AF6938 #AFA438 #7EAF38
triadic
#AFA438 #38AFA4 #A438AF
tetradic
#AFA438 #38AF69 #3843AF #AF387E
square
#AFA438 #38AF69 #3843AF #AF387E
split-complementary
#AFA438 #387EAF #6938AF
monochromatic
#524D1A #817929 #AFA438 #CAC05A #D9D288

Accessibility & contrast

On white

2.56
#AFA438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#AFA438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA438
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA438#FFFFFF#000000##000000
##AFA4381.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F29
Deuteranopia (green-blind)
#B6A43F
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa438;
/* rgb */ color: rgb(175, 164, 56);
/* oklch */ color: oklch(70.8% 0.127 103.5);
Tailwind
colors: {
  custom: {
    50: '#cabe75',
    500: '#afa438',
    950: '#000000',
  },
}
SCSS
$custom: #afa438;
$custom-light: #cabe75;
$custom-dark: #000000;
JSON
{
  "hex": "#afa438",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 56
  },
  "hsl": {
    "h": 54.454,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.70801,
    "c": 0.12706,
    "h": 103.5
  },
  "luminance": 0.3595
}

Semantic roles & 50–950 ramp

primary
#AFA438
secondary
#8086C3
accent
#5ADB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA438

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

Preview Lab → · Contrast checker → · Palette generator →

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