#A2AB38#A2AB38

#A2AB38 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.2% C 0.137 H 113.7°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#A2AB38
RGBrgb(162, 171, 56)
HSLhsl(65, 51%, 45%)
HSVhsv(65, 67%, 67%)
CMYKcmyk(5.3%, 0%, 67.3%, 32.9%)
CIE-LABlab(67.35, -18.15, 55.59)
CIE-LCHlch(67.35, 58.48, 108.08°)
OKLaboklab(71.23% -0.0549 0.1251)
OKLCHoklch(71.23% 0.137 113.7)
XYZxyz(30.1778, 37.0933, 9.3106)
Luminance0.3709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AB38 #4138AB
analogous
#AB7B38 #A2AB38 #68AB38
triadic
#A2AB38 #38A2AB #AB38A2
tetradic
#A2AB38 #38AB7B #4138AB #AB3868
square
#A2AB38 #38AB7B #4138AB #AB3868
split-complementary
#A2AB38 #3868AB #7B38AB
monochromatic
#4B4F1A #767D29 #A2AB38 #BFC858 #D1D786

Accessibility & contrast

On white

2.49
#A2AB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#A2AB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AB38
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AB38#FFFFFF#000000##000000
##A2AB381.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A327
Deuteranopia (green-blind)
#B7A540
Tritanopia (blue-blind)
#ADA194
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a2ab38;
/* rgb */ color: rgb(162, 171, 56);
/* oklch */ color: oklch(71.2% 0.137 113.7);
Tailwind
colors: {
  custom: {
    50: '#c0c375',
    500: '#a2ab38',
    950: '#000000',
  },
}
SCSS
$custom: #a2ab38;
$custom-light: #c0c375;
$custom-dark: #000000;
JSON
{
  "hex": "#a2ab38",
  "rgb": {
    "r": 162,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 64.696,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71226,
    "c": 0.13659,
    "h": 113.7
  },
  "luminance": 0.37093
}

Semantic roles & 50–950 ramp

primary
#A2AB38
secondary
#837DC1
accent
#4EDA59
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A2AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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