#A2B138#A2B138

#A2B138 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 72.6% C 0.143 H 116.2°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#A2B138
RGBrgb(162, 177, 56)
HSLhsl(67, 52%, 46%)
HSVhsv(67, 68%, 69%)
CMYKcmyk(8.5%, 0%, 68.4%, 30.6%)
CIE-LABlab(69.05, -21.17, 57.32)
CIE-LCHlch(69.05, 61.11, 110.27°)
OKLaboklab(72.59% -0.0633 0.1287)
OKLCHoklch(72.59% 0.143 116.2)
XYZxyz(31.3370, 39.4116, 9.6970)
Luminance0.3941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B138 #4738B1
analogous
#B18338 #A2B138 #65B138
triadic
#A2B138 #38A2B1 #B138A2
tetradic
#A2B138 #38B183 #4738B1 #B13865
square
#A2B138 #38B183 #4738B1 #B13865
split-complementary
#A2B138 #3865B1 #8338B1
monochromatic
#4D541B #778329 #A2B138 #BDCB5B #D0DA8A

Accessibility & contrast

On white

2.36
#A2B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#A2B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B138
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B138#FFFFFF#000000##000000
##A2B1381.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA826
Deuteranopia (green-blind)
#BCA941
Tritanopia (blue-blind)
#ACA799
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a2b138;
/* rgb */ color: rgb(162, 177, 56);
/* oklch */ color: oklch(72.6% 0.143 116.2);
Tailwind
colors: {
  custom: {
    50: '#c1c876',
    500: '#a2b138',
    950: '#000000',
  },
}
SCSS
$custom: #a2b138;
$custom-light: #c1c876;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b138",
  "rgb": {
    "r": 162,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 67.438,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72591,
    "c": 0.14344,
    "h": 116.2
  },
  "luminance": 0.39411
}

Semantic roles & 50–950 ramp

primary
#A2B138
secondary
#8981C4
accent
#4CDB5E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A2B138

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

Preview Lab → · Contrast checker → · Palette generator →

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