#A5B138#A5B138

#A5B138 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.8% C 0.142 H 114.9°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#A5B138
RGBrgb(165, 177, 56)
HSLhsl(66, 52%, 46%)
HSVhsv(66, 68%, 69%)
CMYKcmyk(6.8%, 0%, 68.4%, 30.6%)
CIE-LABlab(69.28, -19.90, 57.63)
CIE-LCHlch(69.28, 60.97, 109.05°)
OKLaboklab(72.83% -0.0599 0.1293)
OKLCHoklch(72.83% 0.143 114.9)
XYZxyz(31.9538, 39.7297, 9.7259)
Luminance0.3973 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B138 #4438B1
analogous
#B18038 #A5B138 #69B138
triadic
#A5B138 #38A5B1 #B138A5
tetradic
#A5B138 #38B180 #4438B1 #B13869
square
#A5B138 #38B180 #4438B1 #B13869
split-complementary
#A5B138 #3869B1 #8038B1
monochromatic
#4E541B #7A8329 #A5B138 #C0CB5B #D2DA8A

Accessibility & contrast

On white

2.35
#A5B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#A5B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B138
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B138#FFFFFF#000000##000000
##A5B1381.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA826
Deuteranopia (green-blind)
#BDAA41
Tritanopia (blue-blind)
#B0A799
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a5b138;
/* rgb */ color: rgb(165, 177, 56);
/* oklch */ color: oklch(72.8% 0.142 114.9);
Tailwind
colors: {
  custom: {
    50: '#c3c876',
    500: '#a5b138',
    950: '#000000',
  },
}
SCSS
$custom: #a5b138;
$custom-light: #c3c876;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b138",
  "rgb": {
    "r": 165,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 65.95,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.7283,
    "c": 0.1425,
    "h": 114.9
  },
  "luminance": 0.39729
}

Semantic roles & 50–950 ramp

primary
#A5B138
secondary
#8781C4
accent
#4CDB5B
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A5B138

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

Preview Lab → · Contrast checker → · Palette generator →

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