#A7BA31#A7BA31

#A7BA31 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.0% C 0.156 H 117.3°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#A7BA31
RGBrgb(167, 186, 49)
HSLhsl(68, 58%, 46%)
HSVhsv(68, 74%, 73%)
CMYKcmyk(10.2%, 0%, 73.7%, 27.1%)
CIE-LABlab(71.93, -23.90, 62.84)
CIE-LCHlch(71.93, 67.23, 110.82°)
OKLaboklab(74.98% -0.0718 0.139)
OKLCHoklch(74.98% 0.156 117.3)
XYZxyz(34.0504, 43.5554, 9.5184)
Luminance0.4355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7BA31 #4431BA
analogous
#BA8831 #A7BA31 #62BA31
triadic
#A7BA31 #31A7BA #BA31A7
tetradic
#A7BA31 #31BA88 #4431BA #BA3162
square
#A7BA31 #31BA88 #4431BA #BA3162
split-complementary
#A7BA31 #3162BA #8831BA
monochromatic
#505917 #7C8A24 #A7BA31 #C1D256 #D3DF86

Accessibility & contrast

On white

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

On black

9.71
#A7BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7BA31
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7BA31#FFFFFF#000000##000000
##A7BA311.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B014
Deuteranopia (green-blind)
#C5B13D
Tritanopia (blue-blind)
#B1AFA0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #a7ba31;
/* rgb */ color: rgb(167, 186, 49);
/* oklch */ color: oklch(75.0% 0.156 117.3);
Tailwind
colors: {
  custom: {
    50: '#c5ce73',
    500: '#a7ba31',
    950: '#000000',
  },
}
SCSS
$custom: #a7ba31;
$custom-light: #c5ce73;
$custom-dark: #000000;
JSON
{
  "hex": "#a7ba31",
  "rgb": {
    "r": 167,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 68.321,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74984,
    "c": 0.15648,
    "h": 117.3
  },
  "luminance": 0.43555
}

Semantic roles & 50–950 ramp

primary
#A7BA31
secondary
#887EC9
accent
#46E25C
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A7BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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