#AFB830#AFB830

#AFB830 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.2% C 0.152 H 113.3°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#AFB830
RGBrgb(175, 184, 48)
HSLhsl(64, 59%, 45%)
HSVhsv(64, 74%, 72%)
CMYKcmyk(4.9%, 0%, 73.9%, 27.8%)
CIE-LABlab(71.97, -19.58, 63.43)
CIE-LCHlch(71.97, 66.38, 107.15°)
OKLaboklab(75.16% -0.0603 0.1399)
OKLCHoklch(75.16% 0.152 113.3)
XYZxyz(35.3543, 43.6091, 9.3507)
Luminance0.4361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB830 #3930B8
analogous
#B87D30 #AFB830 #6BB830
triadic
#AFB830 #30AFB8 #B830AF
tetradic
#AFB830 #30B87D #3930B8 #B8306B
square
#AFB830 #30B87D #3930B8 #B8306B
split-complementary
#AFB830 #306BB8 #7D30B8
monochromatic
#535717 #818723 #AFB830 #CAD253 #D9DF84

Accessibility & contrast

On white

2.16
#AFB830 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#AFB830 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB830
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB830#FFFFFF#000000##000000
##AFB8301.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF13
Deuteranopia (green-blind)
#C6B23B
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb830;
/* rgb */ color: rgb(175, 184, 48);
/* oklch */ color: oklch(75.2% 0.152 113.3);
Tailwind
colors: {
  custom: {
    50: '#cacd73',
    500: '#afb830',
    950: '#000000',
  },
}
SCSS
$custom: #afb830;
$custom-light: #cacd73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb830",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 48
  },
  "hsl": {
    "h": 63.971,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.75162,
    "c": 0.15232,
    "h": 113.3
  },
  "luminance": 0.43608
}

Semantic roles & 50–950 ramp

primary
#AFB830
secondary
#817CC8
accent
#46E250
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB830

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

Preview Lab → · Contrast checker → · Palette generator →

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