#A7BA27#A7BA27

#A7BA27 is a light, vivid yellow. Relative luminance 0.435; OKLCH L 74.9% C 0.162 H 117.2°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#A7BA27
RGBrgb(167, 186, 39)
HSLhsl(68, 65%, 44%)
HSVhsv(68, 79%, 73%)
CMYKcmyk(10.2%, 0%, 79%, 27.1%)
CIE-LABlab(71.88, -24.34, 65.95)
CIE-LCHlch(71.88, 70.29, 110.25°)
OKLaboklab(74.93% -0.0738 0.1439)
OKLCHoklch(74.93% 0.162 117.2)
XYZxyz(33.8623, 43.4802, 8.5277)
Luminance0.4348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7BA27 #3A27BA
analogous
#BA8427 #A7BA27 #5EBA27
triadic
#A7BA27 #27A7BA #BA27A7
tetradic
#A7BA27 #27BA84 #3A27BA #BA275E
square
#A7BA27 #27BA84 #3A27BA #BA275E
split-complementary
#A7BA27 #275EBA #8427BA
monochromatic
#4C5512 #7A871C #A7BA27 #C5D846 #D5E379

Accessibility & contrast

On white

2.17
#A7BA27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#A7BA27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7BA27
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7BA27#FFFFFF#000000##000000
##A7BA271.002.179.709.70
#FFFFFF2.171.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B000
Deuteranopia (green-blind)
#C5B135
Tritanopia (blue-blind)
#B2AF9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #a7ba27;
/* rgb */ color: rgb(167, 186, 39);
/* oklch */ color: oklch(74.9% 0.162 117.2);
Tailwind
colors: {
  custom: {
    50: '#c5ce6f',
    500: '#a7ba27',
    950: '#000000',
  },
}
SCSS
$custom: #a7ba27;
$custom-light: #c5ce6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a7ba27",
  "rgb": {
    "r": 167,
    "g": 186,
    "b": 39
  },
  "hsl": {
    "h": 67.755,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74927,
    "c": 0.16172,
    "h": 117.2
  },
  "luminance": 0.4348
}

Semantic roles & 50–950 ramp

primary
#A7BA27
secondary
#7E72CB
accent
#40E855
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7BA27

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

Preview Lab → · Contrast checker → · Palette generator →

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