#A5B538#A5B538

#A5B538 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.7% C 0.147 H 116.4°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#A5B538
RGBrgb(165, 181, 56)
HSLhsl(68, 53%, 46%)
HSVhsv(68, 69%, 71%)
CMYKcmyk(8.8%, 0%, 69.1%, 29%)
CIE-LABlab(70.41, -21.90, 58.77)
CIE-LCHlch(70.41, 62.71, 110.44°)
OKLaboklab(73.74% -0.0655 0.1317)
OKLCHoklch(73.74% 0.147 116.4)
XYZxyz(32.7555, 41.3330, 9.9931)
Luminance0.4133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B538 #4838B5
analogous
#B58738 #A5B538 #67B538
triadic
#A5B538 #38A5B5 #B538A5
tetradic
#A5B538 #38B587 #4838B5 #B53867
square
#A5B538 #38B587 #4838B5 #B53867
split-complementary
#A5B538 #3867B5 #8738B5
monochromatic
#50581B #7A862A #A5B538 #BFCD5D #D1DB8C

Accessibility & contrast

On white

2.27
#A5B538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#A5B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B538
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B538#FFFFFF#000000##000000
##A5B5381.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC24
Deuteranopia (green-blind)
#C0AD42
Tritanopia (blue-blind)
#AFAB9C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a5b538;
/* rgb */ color: rgb(165, 181, 56);
/* oklch */ color: oklch(73.7% 0.147 116.4);
Tailwind
colors: {
  custom: {
    50: '#c3cb76',
    500: '#a5b538',
    950: '#000000',
  },
}
SCSS
$custom: #a5b538;
$custom-light: #c3cb76;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b538",
  "rgb": {
    "r": 165,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 67.68,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.73739,
    "c": 0.14707,
    "h": 116.4
  },
  "luminance": 0.41333
}

Semantic roles & 50–950 ramp

primary
#A5B538
secondary
#8C83C6
accent
#4CDC5E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A5B538

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

Preview Lab → · Contrast checker → · Palette generator →

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