#A5A138#A5A138

#A5A138 is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.2% C 0.125 H 107.1°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#A5A138
RGBrgb(165, 161, 56)
HSLhsl(58, 49%, 43%)
HSVhsv(58, 66%, 65%)
CMYKcmyk(0%, 2.4%, 66.1%, 35.3%)
CIE-LABlab(64.78, -11.69, 53.03)
CIE-LCHlch(64.78, 54.30, 102.43°)
OKLaboklab(69.24% -0.0369 0.1196)
OKLCHoklch(69.24% 0.125 107.1)
XYZxyz(28.9768, 33.7755, 8.7336)
Luminance0.3377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A138 #383CA5
analogous
#A56A38 #A5A138 #72A538
triadic
#A5A138 #38A5A1 #A138A5
tetradic
#A5A138 #38A56A #383CA5 #A53872
square
#A5A138 #38A56A #383CA5 #A53872
split-complementary
#A5A138 #3872A5 #6A38A5
monochromatic
#4A4819 #777428 #A5A138 #C5C155 #D5D283

Accessibility & contrast

On white

2.71
#A5A138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#A5A138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A138
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A138#FFFFFF#000000##000000
##A5A1381.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B2A
Deuteranopia (green-blind)
#B09F3F
Tritanopia (blue-blind)
#B1978B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a5a138;
/* rgb */ color: rgb(165, 161, 56);
/* oklch */ color: oklch(69.2% 0.125 107.1);
Tailwind
colors: {
  custom: {
    50: '#c3bc74',
    500: '#a5a138',
    950: '#000000',
  },
}
SCSS
$custom: #a5a138;
$custom-light: #c3bc74;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a138",
  "rgb": {
    "r": 165,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 57.798,
    "s": 49.321,
    "l": 43.333
  },
  "oklch": {
    "l": 0.69239,
    "c": 0.12516,
    "h": 107.1
  },
  "luminance": 0.33775
}

Semantic roles & 50–950 ramp

primary
#A5A138
secondary
#7A7DBE
accent
#54D94F
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A5A138

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

Preview Lab → · Contrast checker → · Palette generator →

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