#A5B526#A5B526

#A5B526 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.6% C 0.157 H 116.2°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#A5B526
RGBrgb(165, 181, 38)
HSLhsl(67, 65%, 43%)
HSVhsv(67, 79%, 71%)
CMYKcmyk(8.8%, 0%, 79%, 29%)
CIE-LABlab(70.31, -22.76, 64.77)
CIE-LCHlch(70.31, 68.65, 109.36°)
OKLaboklab(73.63% -0.0694 0.1413)
OKLCHoklch(73.63% 0.157 116.2)
XYZxyz(32.3917, 41.1875, 8.0770)
Luminance0.4119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B526 #3626B5
analogous
#B57D26 #A5B526 #5EB526
triadic
#A5B526 #26A5B5 #B526A5
tetradic
#A5B526 #26B57D #3626B5 #B5265E
square
#A5B526 #26B57D #3626B5 #B5265E
split-complementary
#A5B526 #265EB5 #7D26B5
monochromatic
#495011 #77821B #A5B526 #C6D741 #D5E274

Accessibility & contrast

On white

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

On black

9.24
#A5B526 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B526
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B526#FFFFFF#000000##000000
##A5B5261.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C1AD34
Tritanopia (blue-blind)
#B0AA9B
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a5b526;
/* rgb */ color: rgb(165, 181, 38);
/* oklch */ color: oklch(73.6% 0.157 116.2);
Tailwind
colors: {
  custom: {
    50: '#c3cb6e',
    500: '#a5b526',
    950: '#000000',
  },
}
SCSS
$custom: #a5b526;
$custom-light: #c3cb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b526",
  "rgb": {
    "r": 165,
    "g": 181,
    "b": 38
  },
  "hsl": {
    "h": 66.713,
    "s": 65.297,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73625,
    "c": 0.15744,
    "h": 116.2
  },
  "luminance": 0.41187
}

Semantic roles & 50–950 ramp

primary
#A5B526
secondary
#786EC9
accent
#40E852
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5B526

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

Preview Lab → · Contrast checker → · Palette generator →

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