#A5A538#A5A538

#A5A538 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.1% C 0.129 H 109.3°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#A5A538
RGBrgb(165, 165, 56)
HSLhsl(60, 49%, 43%)
HSVhsv(60, 66%, 65%)
CMYKcmyk(0%, 0%, 66.1%, 35.3%)
CIE-LABlab(65.90, -13.78, 54.18)
CIE-LCHlch(65.90, 55.91, 104.27°)
OKLaboklab(70.13% -0.0428 0.122)
OKLCHoklch(70.13% 0.129 109.3)
XYZxyz(29.6870, 35.1960, 8.9703)
Luminance0.3519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A538 #3838A5
analogous
#A56E38 #A5A538 #6EA538
triadic
#A5A538 #38A5A5 #A538A5
tetradic
#A5A538 #38A56E #3838A5 #A5386E
square
#A5A538 #38A56E #3838A5 #A5386E
split-complementary
#A5A538 #386EA5 #6E38A5
monochromatic
#4A4A19 #777728 #A5A538 #C5C555 #D5D583

Accessibility & contrast

On white

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

On black

8.04
#A5A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A538
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A538#FFFFFF#000000##000000
##A5A5381.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E29
Deuteranopia (green-blind)
#B3A23F
Tritanopia (blue-blind)
#B09B8F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a5a538;
/* rgb */ color: rgb(165, 165, 56);
/* oklch */ color: oklch(70.1% 0.129 109.3);
Tailwind
colors: {
  custom: {
    50: '#c3bf75',
    500: '#a5a538',
    950: '#000000',
  },
}
SCSS
$custom: #a5a538;
$custom-light: #c3bf75;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a538",
  "rgb": {
    "r": 165,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 60,
    "s": 49.321,
    "l": 43.333
  },
  "oklch": {
    "l": 0.7013,
    "c": 0.12931,
    "h": 109.3
  },
  "luminance": 0.35195
}

Semantic roles & 50–950 ramp

primary
#A5A538
secondary
#7A7ABE
accent
#4FD94F
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A5A538

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

Preview Lab → · Contrast checker → · Palette generator →

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