#A7B231#A7B231

#A7B231 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.2% C 0.148 H 114.3°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#A7B231
RGBrgb(167, 178, 49)
HSLhsl(65, 57%, 45%)
HSVhsv(65, 72%, 70%)
CMYKcmyk(6.2%, 0%, 72.5%, 30.2%)
CIE-LABlab(69.67, -19.93, 60.67)
CIE-LCHlch(69.67, 63.86, 108.19°)
OKLaboklab(73.17% -0.0608 0.1345)
OKLCHoklch(73.17% 0.148 114.3)
XYZxyz(32.4120, 40.2786, 8.9723)
Luminance0.4028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B231 #3C31B2
analogous
#B27C31 #A7B231 #67B231
triadic
#A7B231 #31A7B2 #B231A7
tetradic
#A7B231 #31B27C #3C31B2 #B23167
square
#A7B231 #31B27C #3C31B2 #B23167
split-complementary
#A7B231 #3167B2 #7C31B2
monochromatic
#4D5217 #7A8224 #A7B231 #C4CF51 #D5DC81

Accessibility & contrast

On white

2.32
#A7B231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#A7B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B231
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B231#FFFFFF#000000##000000
##A7B2311.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA918
Deuteranopia (green-blind)
#BFAB3B
Tritanopia (blue-blind)
#B2A799
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a7b231;
/* rgb */ color: rgb(167, 178, 49);
/* oklch */ color: oklch(73.2% 0.148 114.3);
Tailwind
colors: {
  custom: {
    50: '#c4c872',
    500: '#a7b231',
    950: '#000000',
  },
}
SCSS
$custom: #a7b231;
$custom-light: #c4c872;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b231",
  "rgb": {
    "r": 167,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 65.116,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73168,
    "c": 0.14757,
    "h": 114.3
  },
  "luminance": 0.40278
}

Semantic roles & 50–950 ramp

primary
#A7B231
secondary
#8079C5
accent
#48E055
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B231

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

Preview Lab → · Contrast checker → · Palette generator →

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