#B7AF30#B7AF30

#B7AF30 is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.9% C 0.142 H 105.7°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#B7AF30
RGBrgb(183, 175, 48)
HSLhsl(56, 58%, 45%)
HSVhsv(56, 74%, 72%)
CMYKcmyk(0%, 4.4%, 73.8%, 28.2%)
CIE-LABlab(70.14, -11.55, 61.93)
CIE-LCHlch(70.14, 63.00, 100.57°)
OKLaboklab(73.86% -0.0384 0.1364)
OKLCHoklch(73.86% 0.142 105.7)
XYZxyz(35.3934, 40.9420, 8.8340)
Luminance0.4094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF30 #3038B7
analogous
#B76B30 #B7AF30 #7CB730
triadic
#B7AF30 #30B7AF #AF30B7
tetradic
#B7AF30 #30B76B #3038B7 #B7307C
square
#B7AF30 #30B76B #3038B7 #B7307C
split-complementary
#B7AF30 #307CB7 #6B30B7
monochromatic
#565217 #878123 #B7AF30 #D2CA52 #DED983

Accessibility & contrast

On white

2.29
#B7AF30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.19
#B7AF30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AF30
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AF30#FFFFFF#000000##000000
##B7AF301.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA917
Deuteranopia (green-blind)
#C1AE39
Tritanopia (blue-blind)
#C5A397
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b7af30;
/* rgb */ color: rgb(183, 175, 48);
/* oklch */ color: oklch(73.9% 0.142 105.7);
Tailwind
colors: {
  custom: {
    50: '#d0c672',
    500: '#b7af30',
    950: '#000000',
  },
}
SCSS
$custom: #b7af30;
$custom-light: #d0c672;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af30",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 56.444,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.73859,
    "c": 0.14168,
    "h": 105.7
  },
  "luminance": 0.40941
}

Semantic roles & 50–950 ramp

primary
#B7AF30
secondary
#7B80C8
accent
#4FE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7AF30

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

Preview Lab → · Contrast checker → · Palette generator →

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