#A5BA27#A5BA27

#A5BA27 is a light, vivid yellow. Relative luminance 0.433; OKLCH L 74.8% C 0.162 H 117.9°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#A5BA27
RGBrgb(165, 186, 39)
HSLhsl(69, 65%, 44%)
HSVhsv(69, 79%, 73%)
CMYKcmyk(11.3%, 0%, 79%, 27.1%)
CIE-LABlab(71.73, -25.18, 65.76)
CIE-LCHlch(71.73, 70.42, 110.95°)
OKLaboklab(74.77% -0.076 0.1436)
OKLCHoklch(74.77% 0.162 117.9)
XYZxyz(33.4430, 43.2640, 8.5081)
Luminance0.4326 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5BA27 #3C27BA
analogous
#BA8527 #A5BA27 #5CBA27
triadic
#A5BA27 #27A5BA #BA27A5
tetradic
#A5BA27 #27BA85 #3C27BA #BA275C
square
#A5BA27 #27BA85 #3C27BA #BA275C
split-complementary
#A5BA27 #275CBA #8527BA
monochromatic
#4B5512 #78871C #A5BA27 #C3D846 #D4E379

Accessibility & contrast

On white

2.18
#A5BA27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.65
#A5BA27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5BA27
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5BA27#FFFFFF#000000##000000
##A5BA271.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7AF00
Deuteranopia (green-blind)
#C5B036
Tritanopia (blue-blind)
#AFAF9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #a5ba27;
/* rgb */ color: rgb(165, 186, 39);
/* oklch */ color: oklch(74.8% 0.162 117.9);
Tailwind
colors: {
  custom: {
    50: '#c4ce6f',
    500: '#a5ba27',
    950: '#000000',
  },
}
SCSS
$custom: #a5ba27;
$custom-light: #c4ce6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ba27",
  "rgb": {
    "r": 165,
    "g": 186,
    "b": 39
  },
  "hsl": {
    "h": 68.571,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74773,
    "c": 0.16245,
    "h": 117.9
  },
  "luminance": 0.43264
}

Semantic roles & 50–950 ramp

primary
#A5BA27
secondary
#7F72CB
accent
#40E858
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5BA27

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

Preview Lab → · Contrast checker → · Palette generator →

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