#A5BA28#A5BA28

#A5BA28 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#A5BA28
RGBrgb(165, 186, 40)
HSLhsl(69, 65%, 44%)
HSVhsv(69, 78%, 73%)
CMYKcmyk(11.3%, 0%, 78.5%, 27.1%)
CIE-LABlab(71.74, -25.14, 65.47)
CIE-LCHlch(71.74, 70.13, 111.00°)
OKLaboklab(74.78% -0.0758 0.1431)
OKLCHoklch(74.78% 0.162 117.9)
XYZxyz(33.4598, 43.2707, 8.5965)
Luminance0.4327 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5BA28 #3D28BA
analogous
#BA8628 #A5BA28 #5CBA28
triadic
#A5BA28 #28A5BA #BA28A5
tetradic
#A5BA28 #28BA86 #3D28BA #BA285C
square
#A5BA28 #28BA86 #3D28BA #BA285C
split-complementary
#A5BA28 #285CBA #8628BA
monochromatic
#4C5512 #78881D #A5BA28 #C3D848 #D3E27A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5BA28#FFFFFF#000000##000000
##A5BA281.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: #a5ba28;
/* rgb */ color: rgb(165, 186, 40);
/* oklch */ color: oklch(74.8% 0.162 117.9);
Tailwind
colors: {
  custom: {
    50: '#c3ce6f',
    500: '#a5ba28',
    950: '#000000',
  },
}
SCSS
$custom: #a5ba28;
$custom-light: #c3ce6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ba28",
  "rgb": {
    "r": 165,
    "g": 186,
    "b": 40
  },
  "hsl": {
    "h": 68.63,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.74778,
    "c": 0.16198,
    "h": 117.9
  },
  "luminance": 0.4327
}

Semantic roles & 50–950 ramp

primary
#A5BA28
secondary
#8073CA
accent
#40E858
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5BA28

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

Preview Lab → · Contrast checker → · Palette generator →

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