#B7C331#B7C331

#B7C331 is a light, vivid yellow. Relative luminance 0.493; OKLCH L 78.3% C 0.161 H 114.3°. Best body text is #000000 at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#B7C331
RGBrgb(183, 195, 49)
HSLhsl(65, 60%, 48%)
HSVhsv(65, 75%, 76%)
CMYKcmyk(6.2%, 0%, 74.9%, 23.5%)
CIE-LABlab(75.65, -21.60, 66.77)
CIE-LCHlch(75.65, 70.18, 107.93°)
OKLaboklab(78.27% -0.0663 0.1468)
OKLCHoklch(78.27% 0.161 114.3)
XYZxyz(39.5991, 49.3200, 10.3388)
Luminance0.4932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C331 #3D31C3
analogous
#C38631 #B7C331 #6EC331
triadic
#B7C331 #31B7C3 #C331B7
tetradic
#B7C331 #31C386 #3D31C3 #C3316E
square
#B7C331 #31C386 #3D31C3 #C3316E
split-complementary
#B7C331 #316EC3 #8631C3
monochromatic
#5B6118 #899225 #B7C331 #CCD65B #DBE28C

Accessibility & contrast

On white

1.93
#B7C331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.86
#B7C331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7C331
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7C331#FFFFFF#000000##000000
##B7C3311.001.9310.8610.86
#FFFFFF1.931.0021.0021.00
#00000010.8621.001.001.00
##00000010.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B90E
Deuteranopia (green-blind)
#D1BC3E
Tritanopia (blue-blind)
#C3B7A7
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #b7c331;
/* rgb */ color: rgb(183, 195, 49);
/* oklch */ color: oklch(78.3% 0.161 114.3);
Tailwind
colors: {
  custom: {
    50: '#d0d575',
    500: '#b7c331',
    950: '#000000',
  },
}
SCSS
$custom: #b7c331;
$custom-light: #d0d575;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c331",
  "rgb": {
    "r": 183,
    "g": 195,
    "b": 49
  },
  "hsl": {
    "h": 64.932,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.78268,
    "c": 0.16112,
    "h": 114.3
  },
  "luminance": 0.49319
}

Semantic roles & 50–950 ramp

primary
#B7C331
secondary
#8983CC
accent
#45E352
background
#FDFDF7
surface
#FAFAED
border
#D3D3C8
text
#141409
muted
#83837B

Preview Lab

Preview with #B7C331

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

Preview Lab → · Contrast checker → · Palette generator →

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