#A5AB38#A5AB38

#A5AB38 is a light, vivid yellow. Relative luminance 0.374; OKLCH L 71.5% C 0.136 H 112.3°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#A5AB38
RGBrgb(165, 171, 56)
HSLhsl(63, 51%, 45%)
HSVhsv(63, 67%, 67%)
CMYKcmyk(3.5%, 0%, 67.3%, 32.9%)
CIE-LABlab(67.58, -16.87, 55.91)
CIE-LCHlch(67.58, 58.40, 106.79°)
OKLaboklab(71.47% -0.0514 0.1257)
OKLCHoklch(71.47% 0.136 112.3)
XYZxyz(30.7947, 37.4114, 9.3395)
Luminance0.3741 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AB38 #3E38AB
analogous
#AB7738 #A5AB38 #6CAB38
triadic
#A5AB38 #38A5AB #AB38A5
tetradic
#A5AB38 #38AB77 #3E38AB #AB386C
square
#A5AB38 #38AB77 #3E38AB #AB386C
split-complementary
#A5AB38 #386CAB #7738AB
monochromatic
#4C4F1A #797D29 #A5AB38 #C2C858 #D3D786

Accessibility & contrast

On white

2.48
#A5AB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#A5AB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AB38
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AB38#FFFFFF#000000##000000
##A5AB381.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A327
Deuteranopia (green-blind)
#B8A640
Tritanopia (blue-blind)
#B0A194
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a5ab38;
/* rgb */ color: rgb(165, 171, 56);
/* oklch */ color: oklch(71.5% 0.136 112.3);
Tailwind
colors: {
  custom: {
    50: '#c3c375',
    500: '#a5ab38',
    950: '#000000',
  },
}
SCSS
$custom: #a5ab38;
$custom-light: #c3c375;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ab38",
  "rgb": {
    "r": 165,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 63.13,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71475,
    "c": 0.13579,
    "h": 112.3
  },
  "luminance": 0.37411
}

Semantic roles & 50–950 ramp

primary
#A5AB38
secondary
#817DC1
accent
#4EDA55
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A5AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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