#A7BA2B#A7BA2B

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

Color values

HEX#A7BA2B
RGBrgb(167, 186, 43)
HSLhsl(68, 62%, 45%)
HSVhsv(68, 77%, 73%)
CMYKcmyk(10.2%, 0%, 76.9%, 27.1%)
CIE-LABlab(71.90, -24.17, 64.77)
CIE-LCHlch(71.90, 69.13, 110.47°)
OKLaboklab(74.95% -0.0731 0.1421)
OKLCHoklch(74.95% 0.16 117.2)
XYZxyz(33.9322, 43.5081, 8.8954)
Luminance0.4351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7BA2B #3E2BBA
analogous
#BA852B #A7BA2B #60BA2B
triadic
#A7BA2B #2BA7BA #BA2BA7
tetradic
#A7BA2B #2BBA85 #3E2BBA #BA2B60
square
#A7BA2B #2BBA85 #3E2BBA #BA2B60
split-complementary
#A7BA2B #2B60BA #852BBA
monochromatic
#4E5714 #7A8820 #A7BA2B #C3D64C #D4E17E

Accessibility & contrast

On white

2.16
#A7BA2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7BA2B#FFFFFF#000000##000000
##A7BA2B1.002.169.709.70
#FFFFFF2.161.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7ba2b;
/* rgb */ color: rgb(167, 186, 43);
/* oklch */ color: oklch(74.9% 0.160 117.2);
Tailwind
colors: {
  custom: {
    50: '#c5ce70',
    500: '#a7ba2b',
    950: '#000000',
  },
}
SCSS
$custom: #a7ba2b;
$custom-light: #c5ce70;
$custom-dark: #000000;
JSON
{
  "hex": "#a7ba2b",
  "rgb": {
    "r": 167,
    "g": 186,
    "b": 43
  },
  "hsl": {
    "h": 67.972,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74948,
    "c": 0.15976,
    "h": 117.2
  },
  "luminance": 0.43508
}

Semantic roles & 50–950 ramp

primary
#A7BA2B
secondary
#8277CA
accent
#42E658
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7BA2B

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

Preview Lab → · Contrast checker → · Palette generator →

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