#AFB330#AFB330

#AFB330 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.0% C 0.147 H 111.3°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#AFB330
RGBrgb(175, 179, 48)
HSLhsl(62, 58%, 45%)
HSVhsv(62, 73%, 70%)
CMYKcmyk(2.2%, 0%, 73.2%, 29.8%)
CIE-LABlab(70.57, -17.06, 62.11)
CIE-LCHlch(70.57, 64.41, 105.36°)
OKLaboklab(74.05% -0.0533 0.1371)
OKLCHoklch(74.05% 0.147 111.3)
XYZxyz(34.3340, 41.5685, 9.0106)
Luminance0.4157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB330 #3430B3
analogous
#B37630 #AFB330 #6EB330
triadic
#AFB330 #30AFB3 #B330AF
tetradic
#AFB330 #30B376 #3430B3 #B3306E
square
#AFB330 #30B376 #3430B3 #B3306E
split-complementary
#AFB330 #306EB3 #7630B3
monochromatic
#515216 #808323 #AFB330 #CCD050 #DADD80

Accessibility & contrast

On white

2.25
#AFB330 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#AFB330 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB330
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB330#FFFFFF#000000##000000
##AFB3301.002.259.319.31
#FFFFFF2.251.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB15
Deuteranopia (green-blind)
#C2AE3A
Tritanopia (blue-blind)
#BBA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb330;
/* rgb */ color: rgb(175, 179, 48);
/* oklch */ color: oklch(74.0% 0.147 111.3);
Tailwind
colors: {
  custom: {
    50: '#cac972',
    500: '#afb330',
    950: '#000000',
  },
}
SCSS
$custom: #afb330;
$custom-light: #cac972;
$custom-dark: #000000;
JSON
{
  "hex": "#afb330",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 48
  },
  "hsl": {
    "h": 61.832,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74046,
    "c": 0.14708,
    "h": 111.3
  },
  "luminance": 0.41568
}

Semantic roles & 50–950 ramp

primary
#AFB330
secondary
#7B79C6
accent
#47E14C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB330

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

Preview Lab → · Contrast checker → · Palette generator →

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