#B7B231#B7B231

#B7B231 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.5% C 0.144 H 107.2°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#B7B231
RGBrgb(183, 178, 49)
HSLhsl(58, 58%, 45%)
HSVhsv(58, 73%, 72%)
CMYKcmyk(0%, 2.7%, 73.2%, 28.2%)
CIE-LABlab(70.96, -13.05, 62.36)
CIE-LCHlch(70.96, 63.71, 101.82°)
OKLaboklab(74.52% -0.0425 0.1375)
OKLCHoklch(74.52% 0.144 107.2)
XYZxyz(36.0046, 42.1311, 9.1407)
Luminance0.4213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B231 #3136B7
analogous
#B76F31 #B7B231 #79B731
triadic
#B7B231 #31B7B2 #B231B7
tetradic
#B7B231 #31B76F #3136B7 #B73179
square
#B7B231 #31B76F #3136B7 #B73179
split-complementary
#B7B231 #3179B7 #6F31B7
monochromatic
#565417 #878324 #B7B231 #D1CD54 #DEDB84

Accessibility & contrast

On white

2.23
#B7B231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#B7B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B231
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B231#FFFFFF#000000##000000
##B7B2311.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB18
Deuteranopia (green-blind)
#C4B03B
Tritanopia (blue-blind)
#C4A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b231;
/* rgb */ color: rgb(183, 178, 49);
/* oklch */ color: oklch(74.5% 0.144 107.2);
Tailwind
colors: {
  custom: {
    50: '#d0c873',
    500: '#b7b231',
    950: '#000000',
  },
}
SCSS
$custom: #b7b231;
$custom-light: #d0c873;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b231",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 57.761,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74519,
    "c": 0.1439,
    "h": 107.2
  },
  "luminance": 0.4213
}

Semantic roles & 50–950 ramp

primary
#B7B231
secondary
#7C7FC8
accent
#4DE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B231

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

Preview Lab → · Contrast checker → · Palette generator →

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