#B7B23A#B7B23A

#B7B23A is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.6% C 0.138 H 107.0°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#B7B23A
RGBrgb(183, 178, 58)
HSLhsl(58, 52%, 47%)
HSVhsv(58, 68%, 72%)
CMYKcmyk(0%, 2.7%, 68.3%, 28.2%)
CIE-LABlab(71.02, -12.60, 59.07)
CIE-LCHlch(71.02, 60.40, 102.04°)
OKLaboklab(74.58% -0.0403 0.1321)
OKLCHoklch(74.58% 0.138 107)
XYZxyz(36.2139, 42.2148, 10.2428)
Luminance0.4221 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B23A #3A3FB7
analogous
#B7743A #B7B23A #7EB73A
triadic
#B7B23A #3AB7B2 #B23AB7
tetradic
#B7B23A #3AB774 #3A3FB7 #B73A7E
square
#B7B23A #3AB774 #3A3FB7 #B73A7E
split-complementary
#B7B23A #3A7EB7 #743AB7
monochromatic
#5A581D #89852B #B7B23A #CDC961 #DCD990

Accessibility & contrast

On white

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

On black

9.44
#B7B23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B23A
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B23A#FFFFFF#000000##000000
##B7B23A1.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB28
Deuteranopia (green-blind)
#C3B042
Tritanopia (blue-blind)
#C4A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b23a;
/* rgb */ color: rgb(183, 178, 58);
/* oklch */ color: oklch(74.6% 0.138 107.0);
Tailwind
colors: {
  custom: {
    50: '#d0c877',
    500: '#b7b23a',
    950: '#000000',
  },
}
SCSS
$custom: #b7b23a;
$custom-light: #d0c877;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b23a",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 57.6,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.74583,
    "c": 0.13814,
    "h": 107
  },
  "luminance": 0.42214
}

Semantic roles & 50–950 ramp

primary
#B7B23A
secondary
#8689C7
accent
#52DB4C
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B23A

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

Preview Lab → · Contrast checker → · Palette generator →

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