#A5B838#A5B838

#A5B838 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.4% C 0.151 H 117.5°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#A5B838
RGBrgb(165, 184, 56)
HSLhsl(69, 53%, 47%)
HSVhsv(69, 70%, 72%)
CMYKcmyk(10.3%, 0%, 69.6%, 27.8%)
CIE-LABlab(71.26, -23.38, 59.62)
CIE-LCHlch(71.26, 64.04, 111.41°)
OKLaboklab(74.42% -0.0696 0.1335)
OKLCHoklch(74.42% 0.151 117.5)
XYZxyz(33.3721, 42.5662, 10.1987)
Luminance0.4257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B838 #4B38B8
analogous
#B88B38 #A5B838 #65B838
triadic
#A5B838 #38A5B8 #B838A5
tetradic
#A5B838 #38B88B #4B38B8 #B83865
square
#A5B838 #38B88B #4B38B8 #B83865
split-complementary
#A5B838 #3865B8 #8B38B8
monochromatic
#515A1B #7B892A #A5B838 #BECE5F #D1DD8E

Accessibility & contrast

On white

2.21
#A5B838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#A5B838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B838
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B838#FFFFFF#000000##000000
##A5B8381.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE23
Deuteranopia (green-blind)
#C2AF42
Tritanopia (blue-blind)
#AFAE9F
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #a5b838;
/* rgb */ color: rgb(165, 184, 56);
/* oklch */ color: oklch(74.4% 0.151 117.5);
Tailwind
colors: {
  custom: {
    50: '#c3cd76',
    500: '#a5b838',
    950: '#000000',
  },
}
SCSS
$custom: #a5b838;
$custom-light: #c3cd76;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b838",
  "rgb": {
    "r": 165,
    "g": 184,
    "b": 56
  },
  "hsl": {
    "h": 68.906,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.74422,
    "c": 0.15054,
    "h": 117.5
  },
  "luminance": 0.42566
}

Semantic roles & 50–950 ramp

primary
#A5B838
secondary
#8F85C7
accent
#4BDD61
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A5B838

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

Preview Lab → · Contrast checker → · Palette generator →

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