#A7B731#A7B731

#A7B731 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.3% C 0.153 H 116.2°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#A7B731
RGBrgb(167, 183, 49)
HSLhsl(67, 58%, 45%)
HSVhsv(67, 73%, 72%)
CMYKcmyk(8.7%, 0%, 73.2%, 28.2%)
CIE-LABlab(71.08, -22.42, 62.03)
CIE-LCHlch(71.08, 65.96, 109.87°)
OKLaboklab(74.3% -0.0677 0.1373)
OKLCHoklch(74.3% 0.153 116.2)
XYZxyz(33.4251, 42.3047, 9.3099)
Luminance0.4230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B731 #4131B7
analogous
#B78431 #A7B731 #64B731
triadic
#A7B731 #31A7B7 #B731A7
tetradic
#A7B731 #31B784 #4131B7 #B73164
square
#A7B731 #31B784 #4131B7 #B73164
split-complementary
#A7B731 #3164B7 #8431B7
monochromatic
#4F5617 #7B8724 #A7B731 #C2D154 #D3DE84

Accessibility & contrast

On white

2.22
#A7B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#A7B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B731
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B731#FFFFFF#000000##000000
##A7B7311.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD16
Deuteranopia (green-blind)
#C2AF3C
Tritanopia (blue-blind)
#B2AC9D
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #a7b731;
/* rgb */ color: rgb(167, 183, 49);
/* oklch */ color: oklch(74.3% 0.153 116.2);
Tailwind
colors: {
  custom: {
    50: '#c5cc73',
    500: '#a7b731',
    950: '#000000',
  },
}
SCSS
$custom: #a7b731;
$custom-light: #c5cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b731",
  "rgb": {
    "r": 167,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 67.164,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74301,
    "c": 0.15312,
    "h": 116.2
  },
  "luminance": 0.42304
}

Semantic roles & 50–950 ramp

primary
#A7B731
secondary
#857CC8
accent
#47E159
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A7B731

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

Preview Lab → · Contrast checker → · Palette generator →

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